aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: ae8930ea203972d911e02f63614b36e1275d1a83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM golang:1.16-alpine AS builder
WORKDIR /build
COPY . .
RUN apk --no-cache add make git

# Use the 'build' make target when fiber branch is stable
RUN make debug

FROM alpine:3.14
RUN apk --no-cache add imagemagick exiv2 ttf-opensans
WORKDIR /app
COPY --from=builder /build/fchan /app
COPY static/ /app/static/
COPY views/ /app/views/
COPY databaseschema.psql /app
CMD ["/app/fchan"]