Skip to content

Commit 877df21

Browse files
committed
Docker file go modules
1 parent c227f69 commit 877df21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ WORKDIR /go/src/github.com/RichardKnop/go-oauth2-server
1717
# Copy the local package files to the container's workspace.
1818
ADD . /go/src/github.com/RichardKnop/go-oauth2-server
1919

20+
# Set GO111MODULE=on variable to activate module support
21+
ENV GO111MODULE on
22+
2023
# Chown the application directory to app user
2124
RUN chown -R app:app /go/src/github.com/RichardKnop/go-oauth2-server/
2225

0 commit comments

Comments
 (0)