Skip to content

Commit

Permalink
using different base image as suggested in docker-library/golang#209
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Leibetseder committed Jun 3, 2020
1 parent 2b89445 commit 7c7a6ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.11-alpine
FROM golang:1.12

# Set maintainer label: maintainer=[YOUR-EMAIL]
LABEL maintainer="manuel.leibetseder@students.fh-hagenberg.at"
Expand All @@ -8,6 +8,8 @@ WORKDIR /src

# Copy local file `main.go` to the working directory
COPY main.go app.go go.* model.go /src/
RUN cd /src && go mod download
RUN cd /src && ls -la

# Build the GO app as myapp binary and move it to /usr/
RUN CGO_ENABLED=0 go build -o /usr/myapp
Expand Down

0 comments on commit 7c7a6ca

Please sign in to comment.