Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit ff5e477

Browse files
dnastrainbderusha
andauthored
Move lib/pq dependency out of Dockerfile (#1281)
Add go.mod and go.sum files make dockerfile 'RUN go get' optional Co-authored-by: Bill DeRusha <[email protected]>
1 parent 039243d commit ff5e477

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

containers/go-postgres/.devcontainer/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/
1010
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
1111
# && apt-get -y install --no-install-recommends <your-package-list-here>
1212

13-
# [Optional] Add more packages to the below lines to use go get to install anything else you need
14-
USER vscode
15-
RUN go get -x github.com/lib/pq
16-
USER root
13+
# [Optional] Uncomment the next lines to use go get to install anything else you need
14+
# USER vscode
15+
# RUN go get -x <your-dependency-or-tool>
16+
# USER root
1717

1818
# [Optional] Uncomment this line to install global node packages.
1919
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module test-project
2+
3+
go 1.17
4+
5+
require github.com/lib/pq v1.10.4
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github.com/lib/pq v1.10.4 h1:SO9z7FRPzA03QhHKJrH5BXA6HU1rS4V2nIVrrNC1iYk=
2+
github.com/lib/pq v1.10.4/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o=

0 commit comments

Comments
 (0)