parent
3d7d3b745b
commit
64cb6e2a7a
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -9,7 +9,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: linux
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
18
Dockerfile
18
Dockerfile
@ -1,7 +1,7 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
# Stage 1: Build the binary
|
# Stage 1: Build the binary
|
||||||
FROM golang:1.22.5-alpine AS brudi_builder
|
FROM golang:1.23.5-alpine3.21 AS brudi_builder
|
||||||
|
|
||||||
# Set necessary environment variables needed for our image
|
# Set necessary environment variables needed for our image
|
||||||
ENV GO111MODULE=on \
|
ENV GO111MODULE=on \
|
||||||
@ -22,20 +22,8 @@ RUN go mod download
|
|||||||
# Build the Go app for the current architecture
|
# Build the Go app for the current architecture
|
||||||
RUN go build -o brudi
|
RUN go build -o brudi
|
||||||
|
|
||||||
# # Stage 2: Create the final image
|
# Stage 2: Create the final image
|
||||||
# FROM alpine:latest
|
FROM postgres:17.2-alpine3.19
|
||||||
|
|
||||||
# # Set the Current Working Directory inside the container
|
|
||||||
# WORKDIR /app
|
|
||||||
|
|
||||||
# # Copy the pre-built binary from the builder stage
|
|
||||||
# COPY --from=builder /build/brudi .
|
|
||||||
|
|
||||||
# # Command to run the binary
|
|
||||||
# CMD ["./brudi"]
|
|
||||||
|
|
||||||
|
|
||||||
FROM postgres:17.2-alpine
|
|
||||||
|
|
||||||
LABEL maintainer="s83 <https://github.com/s83>"
|
LABEL maintainer="s83 <https://github.com/s83>"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user