1
0
forked from mixa/67

first commit 2

This commit is contained in:
mixa
2026-06-15 00:20:48 +03:00
parent 17bfa26689
commit e885e3e6fd
52 changed files with 9107 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
FROM golang:1.26-alpine AS build
ARG SERVICE
WORKDIR /src
COPY services/go.mod ./
COPY services ./
RUN go build -o /out/service ./cmd/${SERVICE}
FROM alpine:3.22
RUN adduser -D app
USER app
WORKDIR /app
COPY --from=build /out/service /app/service
EXPOSE 8080
CMD ["/app/service"]