Skip to content

Commit

Permalink
Fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
aschbacd committed Jan 6, 2022
1 parent 9c19c3d commit 779e2d8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ WORKDIR /go/src/github.com/aschbacd/strava-export
RUN go build -a -tags netgo -ldflags '-w' -o /go/bin/strava-export /go/src/github.com/aschbacd/strava-export

# Package
FROM scratch
COPY --from=base /go/bin/strava-export /strava-export
ENTRYPOINT ["/strava-export"]
FROM alpine:3.15.0
RUN apk update && apk add ca-certificates

COPY --from=base /go/bin/strava-export /usr/share/strava-export/strava-export
COPY ./assets /usr/share/strava-export/assets
COPY ./views /usr/share/strava-export/views

WORKDIR /usr/share/strava-export
ENTRYPOINT ["./strava-export"]

0 comments on commit 779e2d8

Please sign in to comment.