rename Dockerfile and copy all files
All checks were successful
build-docker-imge / Build the docker container (push) Successful in 5m36s
All checks were successful
build-docker-imge / Build the docker container (push) Successful in 5m36s
This commit is contained in:
parent
1e41dd833f
commit
0f07ccb94f
|
@ -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
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user