13 lines
189 B
Docker
13 lines
189 B
Docker
|
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" ]
|