Skip to content

Commit

Permalink
add goarch
Browse files Browse the repository at this point in the history
  • Loading branch information
Bert Vercauteren committed Dec 20, 2019
1 parent 81a2e19 commit cab4c32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ RUN apk add --no-cache libreoffice git
WORKDIR /go/src/github.com/jgoelen/libreconv
COPY . .
RUN go test
RUN CGO_ENABLED=0 GOOS=linux go build -a -o libreconv
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o libreconv

FROM alpine:3.6
RUN apk add --no-cache libreoffice msttcorefonts-installer && update-ms-fonts && fc-cache -f
WORKDIR /app
COPY --from=builder /go/src/github.com/jgoelen/libreconv /app/
ENV GIN_MODE=release
EXPOSE 8080
ENTRYPOINT ./libreconv
ENTRYPOINT ./libreconv

0 comments on commit cab4c32

Please sign in to comment.