From 6fed4ae51fcd3af8de651a42e55f49f79ba3ac6d Mon Sep 17 00:00:00 2001 From: phoenix Date: Sun, 27 Apr 2025 12:40:49 -0400 Subject: [PATCH] Changes to docker file --- .dockerignore.yaml | 7 +++++-- Dockerfile | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.dockerignore.yaml b/.dockerignore.yaml index dfcd3fa..b21695d 100644 --- a/.dockerignore.yaml +++ b/.dockerignore.yaml @@ -8,7 +8,10 @@ pkg/ .gitea/ # Ignore environment files (configure via docker-compose instead) -.env* +.env +.env.sample +.env.docker +.env.docker.sample # Ignore IDE/editor specific files .idea/ @@ -18,4 +21,4 @@ pkg/ *.DS_Store # Add any other files/directories you don't need in the image -# e.g., logs/, tmp/ \ No newline at end of file +# e.g., logs/, tmp/ diff --git a/Dockerfile b/Dockerfile index c1b1081..5c144a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,7 +34,7 @@ RUN --mount=type=ssh mkdir src && \ # Copy the actual source code COPY src ./src # If you have other directories like `templates` or `static`, copy them too -COPY .env ./.env +COPY .env.docker ./.env COPY migrations ./migrations # << --- SSH MOUNT ADDED HERE --- >> @@ -68,4 +68,4 @@ EXPOSE 3000 # Set the command to run your application # Ensure this matches the binary name copied above -CMD ["./icarus_auth"] \ No newline at end of file +CMD ["./icarus_auth"]