Clean up Dockerfile.runtime

This commit is contained in:
Xander Bazzi 2025-02-06 00:49:08 -05:00
parent 0738eb52eb
commit 8cb6faa829

@ -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"]