From 9bff423fec0f85350658e0c041d50c144ecee005 Mon Sep 17 00:00:00 2001 From: Joseph Dickinson Date: Mon, 12 Aug 2024 13:08:57 -0500 Subject: [PATCH] Starter Dockerfile --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..aafbd47 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM debian:bookworm-slim + +WORKDIR /opt/flair + +# Create necessary directories +RUN mkdir -p /opt/flair && mkdir -p /var/log/flair + +# Copy over required files +COPY . /opt/flair + +RUN groupadd -g 7777 flair && \ + useradd -c "Flair User" -g "flair" -u 7777 -d /opt/flair -M -s /bin/bash flair && \ + chown -R flair:flair /opt/flair && \ + chown -R flair:flair /var/log/flair + +USER flair