rename Dockerfile and copy all files
All checks were successful
build-docker-imge / Build the docker container (push) Successful in 5m36s

This commit is contained in:
Konstantin Hintermayer 2024-08-27 18:28:10 +02:00
parent 1e41dd833f
commit 0f07ccb94f
2 changed files with 3 additions and 3 deletions

View File

@ -27,4 +27,4 @@ jobs:
registry: git.kocoder.xyz registry: git.kocoder.xyz
username: ${{ secrets.CI_RUNNER_USER }} username: ${{ secrets.CI_RUNNER_USER }}
password: ${{ secrets.CI_RUNNER_TOKEN }} password: ${{ secrets.CI_RUNNER_TOKEN }}
build_file: DOCKERFILE build_file: Dockerfile

View File

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM golang:1.21.0 FROM golang:1.23.0
# Set destination for COPY # Set destination for COPY
WORKDIR /app WORKDIR /app
@ -11,7 +11,7 @@ RUN go mod download
# Copy the source code. Note the slash at the end, as explained in # Copy the source code. Note the slash at the end, as explained in
# https://docs.docker.com/engine/reference/builder/#copy # https://docs.docker.com/engine/reference/builder/#copy
COPY *.go ./ COPY ./ ./
# Build # Build
RUN CGO_ENABLED=0 GOOS=linux go build -o /szuntis-backend RUN CGO_ENABLED=0 GOOS=linux go build -o /szuntis-backend