Fix keibi dockerfile & ci

This commit is contained in:
Zoe Roux 2024-10-19 19:06:43 +02:00
parent 719d1609a8
commit 8fd57da294
No known key found for this signature in database
2 changed files with 5 additions and 4 deletions

View File

@ -29,7 +29,7 @@ jobs:
- name: Start the service
run: |
cp .env.example .env
docker compose --profile v5 -f docker-compose.build.yml up -d auth postgres traefik --wait
docker compose --profile v5 -f docker-compose.build.yml up -d auth postgres traefik --wait --build
- name: Perform healthchecks
run: |

View File

@ -16,9 +16,10 @@ RUN swag init --parseDependency
RUN CGO_ENABLED=0 GOOS=linux go build -o /keibi
FROM gcr.io/distroless/base-debian11
WORKDIR /
WORKDIR /app
EXPOSE 4568
USER nonroot:nonroot
COPY --from=build /keibi /keibi
CMD ["/keibi"]
COPY --from=build /keibi /app/keibi
COPY sql ./sql
CMD ["/app/keibi"]