refactor
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
FROM golang:1.25-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
WORKDIR /app/tg_parser
|
||||
|
||||
# Modules layer
|
||||
COPY go.mod go.sum ./
|
||||
COPY tg_parser/go.mod tg_parser/go.sum ./
|
||||
COPY pkg /app/pkg
|
||||
RUN go mod download
|
||||
|
||||
# Build layer
|
||||
COPY . .
|
||||
COPY tg_parser /app/tg_parser
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o /parser .
|
||||
|
||||
FROM alpine:latest AS run
|
||||
|
||||
Reference in New Issue
Block a user