mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-11-24 07:23:38 +00:00
Compare commits
6 Commits
7ec5772432
...
1b7d941fcd
Author | SHA1 | Date | |
---|---|---|---|
|
1b7d941fcd | ||
|
e0ff3d315a | ||
|
09de77b543 | ||
|
344fc8bd3c | ||
|
da7991660e | ||
|
391c6364a0 |
@ -1,2 +1,2 @@
|
||||
Django>=2.0,<3.0
|
||||
Django>=5.0.6,<6.0
|
||||
psycopg2>=2.7,<3.0
|
||||
|
@ -35,7 +35,8 @@ WORKDIR /go/src/github.com/go/helloworld/
|
||||
|
||||
COPY app.go .
|
||||
|
||||
RUN go get -d -v github.com/go-sql-driver/mysql \
|
||||
RUN go mod init helloworld \
|
||||
&& go get -d -v github.com/go-sql-driver/mysql \
|
||||
&& CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app . \
|
||||
&& cp /go/src/github.com/go/helloworld/app /root
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user