Last active
May 28, 2023 23:34
-
-
Save rodrigobertin/595b57516a4e57888e2bf182561e1d06 to your computer and use it in GitHub Desktop.
Dockerized Angular app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node_modules | |
.angular |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:18-alpine as builder | |
WORKDIR /app | |
COPY . /app | |
RUN npm install --legacy-peer-deps | |
RUN npm run build --prod | |
FROM alpine:3.9.6 | |
RUN apk update && \ | |
apk add --no-cache lighttpd && \ | |
rm -rf /var/cache/apk/* | |
COPY --from=builder /app/dist/encuestas-seawhite/ /var/www/localhost/htdocs/ | |
RUN echo 'server.error-handler-404 = "/index.html"' >> /etc/lighttpd/lighttpd.conf | |
CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment