Dockerfile: rm EXPOSE

The EXPOSE is inferred from the base image which in this case is nginx

So, we need not expicitely define it. One less layer in final image :)
This commit is contained in:
Sai Karthik 2023-11-21 20:32:44 +05:30
parent 19a325743b
commit 3e82d228dc
No known key found for this signature in database
GPG key ID: F5B9A961BF6EAF0E

View file

@ -18,8 +18,9 @@ RUN --mount=type=cache,target=/root/.local/share/pnpm \
FROM nginx:alpine FROM nginx:alpine
COPY --from=build /app/dist/ /usr/share/nginx/html/ COPY --from=build /app/dist/ /usr/share/nginx/html/
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY docker/entrypoint.sh /entrypoint.sh COPY docker/entrypoint.sh /entrypoint.sh
EXPOSE 80
ENTRYPOINT [ "/entrypoint.sh" ] ENTRYPOINT [ "/entrypoint.sh" ]