A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/orgrim/pg_back/commit/7da1126567843bd6e8613963600a64dbd2c44b66 below:

initial Dockerfile · orgrim/pg_back@7da1126 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+35

-0

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+35

-0

lines changed Original file line number Diff line number Diff line change

@@ -0,0 +1,6 @@

1 +

.git

2 +

.gitignore

3 +

CHANGELOG.md

4 +

CONTRIBUTORS

5 +

LICENSE

6 +

Dockerfile

Original file line number Diff line number Diff line change

@@ -0,0 +1,29 @@

1 +

# syntax=docker/dockerfile:1

2 + 3 +

# Build the application from source

4 +

FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.20 AS build-stage

5 + 6 +

ARG TARGETPLATFORM

7 +

ARG BUILDPLATFORM

8 +

ARG TARGETOS

9 +

ARG TARGETARCH

10 + 11 +

WORKDIR /app

12 + 13 +

COPY go.mod go.sum ./

14 +

RUN go mod download

15 + 16 +

COPY . .

17 + 18 +

RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags="-w -s" -o /go/bin/pg_back

19 + 20 +

# Deploy the application binary into a lean image

21 +

FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.18 AS build-release-stage

22 + 23 +

WORKDIR /app

24 + 25 +

RUN apk add --no-cache postgresql-client

26 + 27 +

COPY --from=build-stage /go/bin/pg_back /app/pg_back

28 + 29 +

ENTRYPOINT ["/app/pg_back"]

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4