Clean up Dockerfile.runtime
This commit is contained in:
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
|
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
|
RUN groupadd -r papibot && useradd -r -g papibot papibot
|
||||||
|
|
||||||
# # Switch to the 'papibot' user
|
# Switch to the 'papibot' user
|
||||||
USER papibot
|
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 /usr/bin/ /usr/bin
|
||||||
COPY --from=build --chown=papibot:papibot /app/ /app/
|
COPY --from=build --chown=papibot:papibot /app/ /app/
|
||||||
|
|
||||||
# # Set the working directory to /app
|
# Set the working directory to /app
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
|
|
||||||
# # Set the entry point to the built Go application
|
# Set the entry point to the built Go application
|
||||||
ENTRYPOINT ["./papibot"]
|
ENTRYPOINT ["./papibot"]
|
Loading…
x
Reference in New Issue
Block a user