soapbox/Dockerfile

15 wiersze
306 B
Docker
Czysty Zwykły widok Historia

2022-09-01 21:57:39 +00:00
FROM node:18 as build
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
COPY installation/docker.conf /etc/nginx/templates/default.conf.template
2022-09-01 21:57:39 +00:00
COPY --from=build /app/static /usr/share/nginx/html