Update Dockerfile

pull/51/head
肥羊 2 years ago committed by GitHub
parent fde1e40618
commit c1af6557db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      Dockerfile

@ -2,15 +2,8 @@ FROM golang:1.19-alpine AS build
WORKDIR /app
COPY ./Golang/go.mod ./
COPY ./Golang/go.sum ./
COPY ./Golang/* ./
RUN go mod download
COPY ./Golang/*.go ./
COPY ./Golang/list/*.go ./list/
COPY ./Golang/liveurls/*.go ./liveurls/
COPY ./Golang/utils/*.go ./utils/
RUN go build -o /allinone
FROM alpine:3.14

Loading…
Cancel
Save