This commit is contained in:
parent
dc317a9bcb
commit
90bfb3f950
1 changed files with 2 additions and 8 deletions
10
Dockerfile
10
Dockerfile
|
@ -1,18 +1,12 @@
|
|||
# syntax=docker/dockerfile:1
|
||||
FROM golang:1.23 AS build-stage
|
||||
FROM docker.io/library/golang:1.23 AS build-stage
|
||||
WORKDIR /app
|
||||
|
||||
COPY go.mod ./
|
||||
COPY go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
COPY *.go ./
|
||||
COPY ./templates/ ./templates/
|
||||
COPY ./well-known/ ./well-known/
|
||||
COPY ./static/ ./static/
|
||||
COPY humans.txt ./
|
||||
COPY robots.txt ./
|
||||
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -o /mstar
|
||||
|
||||
FROM scratch AS build-release-stage
|
||||
|
|
Loading…
Reference in a new issue