diff --git a/Dockerfile.runtime b/Dockerfile.runtime index 675cd46..8e66b82 100644 --- a/Dockerfile.runtime +++ b/Dockerfile.runtime @@ -1,18 +1,17 @@ -# # Use the official golang:1.22.12-bookworm image for the final stage FROM www.gitgud.foo/thegrind/papibot-builder:latest as build -# # Create a group and user 'papibot' +# Create a group and user 'papibot' RUN groupadd -r papibot && useradd -r -g papibot papibot -# # Switch to the 'papibot' user +# Switch to the 'papibot' user USER papibot -# # Copy the necessary files from the build stage +# Copy the necessary files from the build stage COPY --from=build --chown=papibot:papibot /usr/bin/ /usr/bin COPY --from=build --chown=papibot:papibot /app/ /app/ -# # Set the working directory to /app +# Set the working directory to /app WORKDIR /app/ -# # Set the entry point to the built Go application +# Set the entry point to the built Go application ENTRYPOINT ["./papibot"] \ No newline at end of file