Put the api in docker #2

Merged
fry merged 3 commits from dockerize-api into master 2022-03-07 21:43:36 -05:00
2 changed files with 16 additions and 1 deletions
Showing only changes of commit 37476d853d - Show all commits

13
Dockerfile Normal file
View 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" ]

View File

@ -2,4 +2,6 @@ services:
ui:
build: ui
ports:
- 3000:3000
- 3000:3000
api:
build: .