diff options
Diffstat (limited to 'services/docker/nginx/Dockerfile')
-rw-r--r-- | services/docker/nginx/Dockerfile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/services/docker/nginx/Dockerfile b/services/docker/nginx/Dockerfile new file mode 100644 index 0000000..67d41d1 --- /dev/null +++ b/services/docker/nginx/Dockerfile @@ -0,0 +1,12 @@ +FROM node:lts AS build-www +RUN npm install -g pnpm +COPY sites/www /sites/www +WORKDIR /sites/www +RUN pnpm install --frozen-lockfile && pnpm run build + +FROM nginx:mainline +COPY --from=build-www /sites/www/dist /srv/www +ADD sites/www/favicon.ico /srv/www/favicon.ico +RUN apt update && apt-get install -y tini certbot && rm -rf /var/lib/apt/lists/* +ADD --chmod=755 certbot.bash nginx-wrapper.bash /app/ +CMD ["/usr/bin/tini", "--", "/app/nginx-wrapper.bash"] |