parent
3d7d3b745b
commit
64cb6e2a7a
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -9,7 +9,7 @@ on:
|
||||
|
||||
jobs:
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: linux
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
18
Dockerfile
18
Dockerfile
@ -1,7 +1,7 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
# 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
|
||||
ENV GO111MODULE=on \
|
||||
@ -22,20 +22,8 @@ RUN go mod download
|
||||
# Build the Go app for the current architecture
|
||||
RUN go build -o brudi
|
||||
|
||||
# # Stage 2: Create the final image
|
||||
# FROM alpine:latest
|
||||
|
||||
# # 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
|
||||
# Stage 2: Create the final image
|
||||
FROM postgres:17.2-alpine3.19
|
||||
|
||||
LABEL maintainer="s83 <https://github.com/s83>"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user