Skip to content

Commit abf5fdf

Browse files
committed
update Dockerfile to work online
1 parent 2621c6f commit abf5fdf

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Dockerfile

+14
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1+
FROM golang:1.14.0
12

3+
ENV CGO_ENABLED 0
4+
5+
WORKDIR /src/app
6+
7+
RUN addgroup --system projects && adduser --system projects --ingroup projects
8+
9+
RUN chown -R projects:projects /src/app
10+
11+
USER projects
12+
13+
COPY . .
14+
15+
RUN go install -v ./...

0 commit comments

Comments
 (0)