22 lines
324 B
Docker
22 lines
324 B
Docker
# syntax=docker/dockerfile:1
|
|
|
|
FROM alpine:latest
|
|
|
|
# Set working dir
|
|
WORKDIR /code
|
|
|
|
# Download git
|
|
RUN apk add git
|
|
RUN apk add hugo
|
|
|
|
# Download files
|
|
RUN git clone https://forgejo.vanten-s.com/vanten-s/vanten-s.com .
|
|
RUN git submodule update --init
|
|
|
|
# Allow us to access the server
|
|
EXPOSE 1313
|
|
|
|
# Run
|
|
CMD ["hugo", "server"]
|
|
|