You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
329 B
21 lines
329 B
FROM golang:1.19-alpine AS build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY ./Golang/go.mod ./
|
|
COPY ./Golang/go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY ./Golang/*.go ./
|
|
COPY ./Golang/list/*.go ./list/
|
|
COPY ./Golang/liveurls/*.go ./liveurls/
|
|
|
|
RUN go build -o /allinone
|
|
|
|
FROM alpine:3.14
|
|
|
|
COPY --from=build /allinone /allinone
|
|
|
|
EXPOSE 35455
|
|
|
|
CMD [ "/allinone" ] |