fry
56e561c91e
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>
13 lines
183 B
Docker
13 lines
183 B
Docker
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" ] |