aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorKushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com>2021-11-10 16:14:34 -0400
committerFChannel <>2022-06-19 12:53:29 -0700
commitd1c8716c3e1eebde7e028ff675120854320a714a (patch)
treeae9fb90fdaeff47386975fed70eb60c8c75fdc0a /Dockerfile
parentf1f2044c2f2bc24ea2a08c58b4517e1e07f4039c (diff)
index is visible
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile10
1 files changed, 7 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 050cd0b..ae8930e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,12 +1,16 @@
FROM golang:1.16-alpine AS builder
WORKDIR /build
COPY . .
-RUN go build .
+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/Server /app
+COPY --from=builder /build/fchan /app
COPY static/ /app/static/
+COPY views/ /app/views/
COPY databaseschema.psql /app
-CMD ["/app/Server"]
+CMD ["/app/fchan"]