noteshare.space/webapp/Dockerfile
Struchkov Mark 18d2de7805
Some checks failed
continuous-integration/drone/push Build is failing
Настроил сборку drone
2023-05-28 18:33:13 +03:00

25 lines
443 B
Docker

FROM node:16-alpine AS BUILD_IMAGE
ARG VITE_SERVER_INTERNAL=http://noteshare-backend:8080
ARG VITE_BRANDING=Struchkov.Note
# install dependencies
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
# Copy all local files into the image.
COPY . .
RUN npm run build
# remove development dependencies
RUN npm prune --production
FROM node:16-alpine
WORKDIR /app
COPY --from=BUILD_IMAGE /app .
EXPOSE 3000
CMD ["node", "./build"]