mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-29 07:38:02 +02:00
add nginx-golang-postgres application sample
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
This commit is contained in:
parent
a410c8bc62
commit
0d06c37791
7 changed files with 148 additions and 0 deletions
10
samples/nginx-golang-postgres/backend/Dockerfile
Executable file
10
samples/nginx-golang-postgres/backend/Dockerfile
Executable file
|
@ -0,0 +1,10 @@
|
|||
FROM golang:1.13-alpine AS build
|
||||
WORKDIR /go/src/github.com/org/repo
|
||||
COPY . .
|
||||
|
||||
RUN go build -o server .
|
||||
|
||||
FROM alpine:3.7
|
||||
EXPOSE 8000
|
||||
COPY --from=build /go/src/github.com/org/repo/server /server
|
||||
CMD ["/server"]
|
Loading…
Add table
Add a link
Reference in a new issue