undefined env
Anonymous
TRIALOP

a year ago

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;"]

3 Replies

Anonymous
TRIALOP

a year ago

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


Anonymous
TRIALOP

a year ago

1349199555844898800


a year ago

the ENV values should be set in the service when it runs but arent shown in the variables section since theyre managed in the dockerfile and not directly by railway. if you want to override one of them, you can set a railway variable with the same name


Loading...