From d20f336510fe0505d3ef5be1edacb80aab9068ed Mon Sep 17 00:00:00 2001 From: Jeremy Mouton Date: Sat, 31 Jan 2026 12:44:00 +0100 Subject: [PATCH] refactor Dockerfile and remove entrypoint script --- Dockerfile | 11 ++--------- entrypoint.sh | 6 ------ 2 files changed, 2 insertions(+), 15 deletions(-) delete mode 100644 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index c914126..28404ab 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,4 @@ -FROM golang:1.25 as builder - -WORKDIR /app -COPY bin/app /app/bin/app - FROM alpine:latest as release RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/* -COPY --from=builder /app/bin/app . -COPY entrypoint.sh /entrypoint.sh -RUN chmod +x /entrypoint.sh -ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file +COPY bin/app . +ENTRYPOINT ["./app"] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100644 index 67094e5..0000000 --- a/entrypoint.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env bash - -set -e - -./app migration -c /config/config.yaml -exec ./app server -c /config/config.yaml \ No newline at end of file