We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82a180f commit 84ee67cCopy full SHA for 84ee67c
3 files changed
.dockerignore
@@ -0,0 +1 @@
1
+public/
Dockerfile
@@ -1,17 +1,18 @@
FROM ghcr.io/getzola/zola:v0.21.0 AS build
2
3
ARG ZOLA_CONFIG=config.toml
4
-ENV ZOLA_CONFIG=${ZOLA_CONFIG}
5
6
WORKDIR /src
7
8
COPY . /src
9
+COPY ${ZOLA_CONFIG} config.toml
10
+
11
RUN [ "zola", "build" ]
12
13
FROM nginx:1.29.3-alpine
14
15
COPY ./nginx/nginx.conf /etc/nginx/conf.d/default.conf
16
COPY --from=build /src/public /usr/share/nginx/html/
17
-EXPOSE 80
18
+EXPOSE 80 443
docker-compose.prod.yml
@@ -0,0 +1,14 @@
+version: "3.9"
+name: rustlab-page
+services:
+ www:
+ build:
+ context: .
+ dockerfile: Dockerfile
+ args:
+ ZOLA_CONFIG: ${ZOLA_CONFIG:-config.pjatk.toml}
+ image: rustlab-page:latest
+ ports:
+ - "80:80"
+ - "443:443"
+ restart: unless-stopped
0 commit comments