Lightweight blogging engine with Markdown support.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
413 B

FROM golang:1.18.4-alpine as build
WORKDIR /build
RUN apk update && apk upgrade && apk add --no-cache make git
COPY . ./
RUN make
FROM alpine:latest as run
COPY --from=build /build/dist/bin/wallblog /usr/bin/wallblog
RUN mkdir -p /etc/wallblog && mkdir -p /var/lib/wallblog
EXPOSE 80/tcp
EXPOSE 443/tcp
VOLUME /etc/wallblog
VOLUME /var/lib/wallblog
CMD [ "/usr/bin/wallblog" ]