site-docker/Dockerfile

22 lines
324 B
Docker
Raw Normal View History

2023-08-12 22:31:24 +02:00
# syntax=docker/dockerfile:1
2024-07-21 20:14:18 +02:00
FROM alpine:latest
2023-08-12 22:31:24 +02:00
# Set working dir
WORKDIR /code
2023-08-12 22:54:12 +02:00
# Download git
2023-08-12 22:31:24 +02:00
RUN apk add git
2024-07-21 20:14:18 +02:00
RUN apk add hugo
2023-08-12 22:54:12 +02:00
# Download files
2023-08-12 22:31:24 +02:00
RUN git clone https://forgejo.vanten-s.com/vanten-s/vanten-s.com .
RUN git submodule update --init
2023-08-12 22:54:12 +02:00
# Allow us to access the server
2024-07-21 20:14:18 +02:00
EXPOSE 1313
2023-08-12 22:54:12 +02:00
# Run
2024-07-21 20:14:18 +02:00
CMD ["hugo", "server"]
2023-08-12 22:31:24 +02:00