diff options
author | KushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com> | 2021-08-15 17:29:05 -0300 |
---|---|---|
committer | KushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com> | 2021-08-15 17:29:05 -0300 |
commit | 6e7eaf774209bf6dfa55a2ba5bc424eeb2f5ea08 (patch) | |
tree | 08e3bbefe06f327c36e4d94522bd65ceedb3bde5 /Dockerfile | |
parent | 7f7625d9b79503d74f938f4be90bc50f926a6d56 (diff) |
docker
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..050cd0b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,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"] |