Skip to content

Commit

Permalink
Fixup docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
mrfelton committed Apr 8, 2024
1 parent 9a51c05 commit 4e6aa1d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
FROM debian:bookworm-slim

WORKDIR /app
# Create a group and user
RUN groupadd -r appgroup && useradd -r -g appgroup appuser

RUN apt-get update && \
apt-get install -y --no-install-recommends curl tar && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app

# COPY ./schwifty-linux.tar.gz .
# Change the ownership of the /app directory to the appuser
RUN chown -R appuser:appgroup /app

# RUN tar -xzf schwifty-linux.tar.gz && rm schwifty-linux.tar.gz
# Switch to the appuser
USER appuser

COPY ./dist/schwifty .
COPY ./dist/linux/schwifty .

ENTRYPOINT ["./schwifty"]

0 comments on commit 4e6aa1d

Please sign in to comment.