Put the api in docker (#2)
Self explanatory Co-authored-by: David Frymoyer <david.frymoyer@gmail.com> Reviewed-on: #2 Co-authored-by: fry <david.frymoyer@gmail.com> Co-committed-by: fry <david.frymoyer@gmail.com>
This commit is contained in:
parent
08dedb24d2
commit
56e561c91e
13
Dockerfile
Normal file
13
Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
FROM golang:1.17 as base
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
COPY go.mod .
|
||||||
|
COPY go.sum .
|
||||||
|
|
||||||
|
FROM base as source
|
||||||
|
COPY ./*.go /app/
|
||||||
|
|
||||||
|
RUN ls /app/
|
||||||
|
RUN go build -o freego_api .
|
||||||
|
EXPOSE 1379
|
||||||
|
CMD [ "./freego_api" ]
|
@ -2,4 +2,8 @@ services:
|
|||||||
ui:
|
ui:
|
||||||
build: ui
|
build: ui
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
|
api:
|
||||||
|
build: .
|
||||||
|
ports:
|
||||||
|
- 1379:1379
|
Loading…
Reference in New Issue
Block a user