Browse Source

No more drive build

pull/1/head
Amelia A 1 year ago
parent
commit
224d8738e1
Signed by: amy GPG Key ID: 98E879BC3B6E1BF8
  1. 2
      .dockerignore
  2. 18
      Dockerfile

2
.dockerignore

@ -1,2 +1,2 @@
/data
#data
*.zip

18
Dockerfile

@ -1,13 +1,21 @@
FROM golang:1.14
FROM golang:1.14 as builder
WORKDIR /go/src/app
COPY . .
RUN go get -d -v ./...
ARG CGO_ENABLED=0
RUN go install -v ./...
VOLUME /data
ENV CardsDirectory /data
EXPOSE 3200/tcp
CMD ["silicondawn", "serve", "--release"]
FROM scratch
COPY --from=builder /go/bin/silicondawn /
COPY templates /templates
# RUN ["silicondawn", "get"]
COPY data /data
EXPOSE 3200/tcp
ENTRYPOINT ["./silicondawn"]
CMD ["serve", "--release"]

Loading…
Cancel
Save