Browse Source

No more drive build

pull/1/head
Amelia A 8 months ago
parent
commit
224d8738e1
Signed by: amy GPG Key ID: 98E879BC3B6E1BF8
2 changed files with 14 additions and 6 deletions
  1. +1
    -1
      .dockerignore
  2. +13
    -5
      Dockerfile

+ 1
- 1
.dockerignore View File

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

+ 13
- 5
Dockerfile View File

@ -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