--
This commit is contained in:
parent
e03d100656
commit
f5603b818e
@ -1,4 +1,4 @@
|
|||||||
FROM golang:alpine as build
|
FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/golang as build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN apk add git
|
RUN apk add git
|
||||||
COPY . .
|
COPY . .
|
||||||
@ -8,7 +8,7 @@ RUN git config --global url."https://buildToken:glpat-axA8ttckx3aPf_xd2Dym@penah
|
|||||||
RUN go mod download
|
RUN go mod download
|
||||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o core
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o core
|
||||||
|
|
||||||
FROM alpine as prod
|
FROM penahub.gitlab.yandexcloud.net:5050/devops/dockerhub-backup/alpine as prod
|
||||||
COPY --from=build /app/core .
|
COPY --from=build /app/core .
|
||||||
COPY --from=build /app/schema /schema
|
COPY --from=build /app/schema /schema
|
||||||
EXPOSE 1488
|
EXPOSE 1488
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
version: "3"
|
||||||
services:
|
services:
|
||||||
core:
|
core:
|
||||||
hostname: squiz-core
|
hostname: squiz-core
|
||||||
|
Loading…
Reference in New Issue
Block a user