noteshare.space/webapp/Dockerfile

27 lines
434 B
Docker
Raw Normal View History

2022-06-30 23:08:52 +03:00
FROM node:16-alpine AS BUILD_IMAGE
# install dependencies
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
# Copy all local files into the image.
COPY . .
2022-07-01 23:06:50 +03:00
ENV VITE_BACKEND_URL="http://0.0.0.0:8080"
ENV VITE_BRANDING="Noteshare.space"
2022-06-30 23:08:52 +03:00
RUN npm run build
# remove development dependencies
RUN npm prune --production
FROM node:16-alpine
WORKDIR /app
COPY --from=0 /app .
COPY . .
EXPOSE 3000
CMD ["node", "./build"]