aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
blob: 050cd0bc45c289b622919d4bd635fd4b422c3a58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
FROM golang:1.16-alpine AS builder
WORKDIR /build
COPY . .
RUN go build .

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