diff --git a/Dockerfile b/Dockerfile index 1fc21eb..91374f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,28 +1,22 @@ - -##__________________________________________________________________|| FROM node:16.13-alpine as build WORKDIR /app - COPY ./ src - WORKDIR /app/src - RUN npm install - COPY docker/env.local .env.local - RUN npm run build + ##__________________________________________________________________|| FROM nginx:1.19 + RUN apt-get update && apt-get install -y dumb-init COPY --from=build /app/src/dist /usr/share/nginx/html COPY docker/etc-nginx-conf.d-default.conf /etc/nginx/conf.d/default.conf EXPOSE 80 COPY docker/cmd.sh / RUN chmod +x /cmd.sh + ENTRYPOINT ["/usr/bin/dumb-init", "--"] CMD [ "/cmd.sh" ] - -##__________________________________________________________________||