We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e452067 commit 0c58be6Copy full SHA for 0c58be6
1 file changed
01-Authorization-RS256/Dockerfile
@@ -1,16 +1,23 @@
1
-FROM golang:1.8-alpine3.6
+FROM golang:1.17-alpine3.14
2
3
-# install git
+# Install git
4
RUN apk --update add \
5
git openssl \
6
&& rm /var/cache/apk/*
7
8
-WORKDIR /go/src
+# Define current working directory
9
+WORKDIR /01-Authorization-RS256
10
-ADD . /go/src
11
+# Download modules to local cache so we can skip re-
12
+# downloading on consecutive docker build commands
13
+COPY go.mod .
14
+COPY go.sum .
15
+RUN go mod download
16
-RUN go-wrapper download
-
-CMD ["go", "run", "main.go"]
17
+# Add sources
18
+COPY . .
19
20
+# Expose port 3010 for our api binary
21
EXPOSE 3010
22
+
23
+CMD ["go", "run", "main.go"]
0 commit comments