Updated Dockerfile base image and fixed runtime permissions

This commit is contained in:
saundersp
2025-01-19 22:42:53 +01:00
parent 66bcee129b
commit 65f3525ffd
3 changed files with 19 additions and 5 deletions

View File

@ -1,11 +1,21 @@
FROM haskell:9.2.8-slim-buster
FROM haskell:9.4.8-slim-buster
ARG UID=1000
ARG GID=1000
RUN groupadd -g ${GID} saundersp \
&& useradd -l -m -u "${UID}" -g "${GID}" saundersp
USER saundersp
WORKDIR /home/saundersp/haskell_playground
RUN cabal update
COPY . .
COPY app app
COPY haskell-playground.cabal .
RUN cabal build
ENTRYPOINT ["cabal", "run"]
ENTRYPOINT ["cabal"]
CMD ["run"]