Fix Dockerfile

This commit is contained in:
Jan-Lukas Else 2021-07-19 18:44:51 +02:00
parent f23ce63043
commit 2cee446dff
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,8 @@ ENV GOFLAGS="-tags=linux,libsqlite3,sqlite_fts5"
ADD *.go go.mod go.sum /app/
ADD pkgs/ /app/pkgs/
ADD testdata/ /app/testdata/
Add templates/ /app/templates/
ADD templates/ /app/templates/
ADD leaflet/ /app/leaflet/
RUN go test -cover ./...
RUN go build -ldflags '-w -s' -o GoBlog
@ -22,5 +23,4 @@ HEALTHCHECK --interval=1m --timeout=10s CMD GoBlog healthcheck
RUN apk add --no-cache tzdata tor
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main sqlite-dev
COPY templates/ /app/templates/
COPY leaflet/ /app/leaflet/
COPY --from=build /app/GoBlog /bin/