first pass at docker
This commit is contained in:
parent
0339acaaba
commit
37476d853d
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
FROM golang:1.17 as base
|
||||||
|
|
||||||
|
COPY go.mod /
|
||||||
|
COPY go.sum /
|
||||||
|
|
||||||
|
FROM base as source
|
||||||
|
# WORKDIR /app
|
||||||
|
COPY ./*.go /src/
|
||||||
|
|
||||||
|
RUN ls /src
|
||||||
|
RUN go build -o freego_api /src
|
||||||
|
EXPOSE 1379
|
||||||
|
# CMD [ "./freego_api" ]
|
@ -3,3 +3,5 @@ services:
|
|||||||
build: ui
|
build: ui
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
|
api:
|
||||||
|
build: .
|
Loading…
Reference in New Issue
Block a user