Skip to content

Commit

Permalink
build: change runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Porping committed Apr 28, 2024
1 parent c1b6a1c commit 1207887
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ COPY . .
RUN go mod download

RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build \
-ldflags="-w -s" \
-o ./inu-backyard ./cmd/http_server/main.go

RUN pip3 install -r requirements.txt
-ldflags="-w -s" \
-o ./inu-backyard ./cmd/http_server/main.go

# Runner stage
FROM scratch AS runner
FROM alpine:3.14 AS runner
WORKDIR /app

COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
RUN apt-get -y install python3 python3-pip
RUN pip3 install -r requirements.txt

COPY --from=builder /app/inu-backyard /

EXPOSE 3001
Expand Down

0 comments on commit 1207887

Please sign in to comment.