Skip to content

Commit

Permalink
fix: docker error
Browse files Browse the repository at this point in the history
  • Loading branch information
indes committed Feb 7, 2020
1 parent 723825f commit 5f7f332
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM golang:1.12-alpine as builder
FROM golang:1.13-alpine as builder
#ENV CGO_ENABLED=0
COPY . /rss
COPY . /flowerss
RUN apk add git make gcc libc-dev && \
cd /rss && make build
cd /flowerss && make build

# Image starts here
FROM alpine
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /rss/flowerss-bot /bin/
VOLUME /root/.flowerss-bot
WORKDIR /
COPY --from=builder /flowerss/flowerss-bot /bin/
VOLUME /root/.flowerss
WORKDIR /root/.flowerss
ENTRYPOINT ["/bin/flowerss-bot"]

0 comments on commit 5f7f332

Please sign in to comment.