mirror of
https://github.com/yeasy/docker_practice.git
synced 2024-12-01 02:38:54 +00:00
Compare commits
1 Commits
a65e896fe6
...
2cd2fce3c3
Author | SHA1 | Date | |
---|---|---|---|
|
2cd2fce3c3 |
@ -1,2 +1,2 @@
|
|||||||
Django>=5.0.6,<6.0
|
Django>=2.0,<3.0
|
||||||
psycopg2>=2.7,<3.0
|
psycopg2>=2.7,<3.0
|
||||||
|
@ -35,8 +35,7 @@ WORKDIR /go/src/github.com/go/helloworld/
|
|||||||
|
|
||||||
COPY app.go .
|
COPY app.go .
|
||||||
|
|
||||||
RUN go mod init helloworld \
|
RUN go get -d -v github.com/go-sql-driver/mysql \
|
||||||
&& go get -d -v github.com/go-sql-driver/mysql \
|
|
||||||
&& CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app . \
|
&& CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app . \
|
||||||
&& cp /go/src/github.com/go/helloworld/app /root
|
&& cp /go/src/github.com/go/helloworld/app /root
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user