Files
haskell_playground/Dockerfile
2025-05-24 17:44:27 +02:00

22 lines
324 B
Docker

FROM haskell:9.12.2-slim-bookworm
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 app app
COPY haskell-playground.cabal .
RUN cabal build
ENTRYPOINT ["cabal"]
CMD ["run"]