Fix dependencies for turn-in

This commit is contained in:
Darryl Nixon 2023-06-02 20:11:02 -07:00
parent d05141075e
commit 6889a60004
4 changed files with 11 additions and 5 deletions

View file

@ -21,9 +21,15 @@ RUN mkdir -p "${ENV_GHOSTFORGE_DATA_DIR}"
WORKDIR /ghostforge
COPY . .
# Install cffi dependencies for pip install.
RUN apk add --update --no-cache --virtual ghostforge_build libffi-dev musl-dev gcc
# Install ghostforge from the work directory.
RUN pip install .
# Remove cffi dependencies for space.
RUN apk del ghostforge_build
# Expose the web "serve" port specific in the environment variables.
ARG GHOSTFORGE_INTERNAL_WEB_PORT
ENV ENV_GHOSTFORGE_INTERNAL_WEB_PORT=${GHOSTFORGE_INTERNAL_WEB_PORT}