Skip to content

Commit

Permalink
Fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pocockn committed Mar 27, 2020
1 parent bed86f9 commit 75c09e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
FROM golang:latest
FROM golang:1.14.1-alpine3.11
LABEL maintainer="Nick Pocock"

# Install the Certificate-Authority certificates for the app to be able to make
# calls to HTTPS endpoints.
# Git is required for fetching the dependencies.
RUN apk add --no-cache ca-certificates git

# Enable Go Modules
ENV GO111MODULE=on

# Set the Current Working Directory inside the container
WORKDIR /app

Expand All @@ -14,6 +22,6 @@ RUN go mod download
COPY . .

# Build the Go app
RUN go build -o recs-api
RUN CGO_ENABLED=0 go build -o recs-api

ENTRYPOINT ["/recs-api"]
ENTRYPOINT ["/app/recs-api"]
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.5.0

0 comments on commit 75c09e9

Please sign in to comment.