soapbox/Dockerfile

18 wiersze
385 B
Docker
Czysty Zwykły widok Historia

2023-04-20 21:04:44 +00:00
FROM node:20 as build
2022-09-01 21:57:39 +00:00
WORKDIR /app
COPY package.json .
COPY yarn.lock .
RUN yarn
COPY . .
ARG NODE_ENV=production
RUN yarn build
FROM nginx:stable-alpine
EXPOSE 5000
ENV PORT=5000
2022-09-04 20:02:12 +00:00
ENV FALLBACK_PORT=4444
ENV BACKEND_URL=http://localhost:4444
2022-09-04 19:46:29 +00:00
ENV CSP=
2022-09-02 00:49:21 +00:00
COPY installation/docker.conf.template /etc/nginx/templates/default.conf.template
2022-09-01 21:57:39 +00:00
COPY --from=build /app/static /usr/share/nginx/html