#undefined env

4 messages · Page 1 of 1 (latest)

nova fox
#

Hi, I dont know why the environments aren't defined.

This is my dockerfile

FROM oven/bun:canary-debian AS base

ENV DIR=/app
WORKDIR $DIR
ARG EnvironmentVariable

COPY package.json bun.lockb ./

RUN bun install

FROM node:16-alpine AS prerelease
WORKDIR /usr/src/app
COPY --from=base /app/node_modules node_modules
COPY . .

ENV NODE_ENV=production
RUN npm run build

FROM nginx:alpine
COPY --from=base /app/node_modules node_modules
COPY --from=prerelease /usr/src/app/dist /usr/share/nginx/html
COPY security-headers.conf /etc/nginx/
COPY nginx.conf /etc/nginx/conf.d/default.conf

ENV NODE_ENV=production
EXPOSE 8080

CMD ["nginx", "-g", "daemon off;"]
crisp brookBOT
#

Project ID: 1a50eb59-70a2-4390-8fa8-6eb9c7976b96

nova fox
#

1a50eb59-70a2-4390-8fa8-6eb9c7976b96