feat: docker configuration

This commit is contained in:
djerfy
2023-08-19 18:35:03 +02:00
parent 41ae76c10e
commit a563522ec0
5 changed files with 67 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
############################
# Docker build environment #
############################
FROM node:18.16.1-bookworm AS build
WORKDIR /build
COPY . .
RUN npm i
RUN npm run build
############################
# Docker final environment #
############################
FROM caddy:2.7.4-alpine
EXPOSE 80
WORKDIR /var/www/html
COPY --from=build /build/dist/public-pool-ui .
COPY docker/Caddyfile.tpl /etc/Caddyfile.tpl
COPY docker/entrypoint.sh /entrypoint.sh
CMD ["/bin/sh", "/entrypoint.sh"]