base game code; there's no game here (yet)

This commit is contained in:
2023-01-28 21:08:47 -08:00
parent 0cd9cc5fb7
commit 07b56dcd40
11 changed files with 232 additions and 0 deletions

28
Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
FROM python:3.11-alpine AS base
# install rust environment (for rant)
ENV RUSTUP_HOME=/usr/local/rustup CARGO_HOME=/usr/local/cargo PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUST_VERSION=1.61.0
RUN apk add --no-cache rustup gcc musl-dev
RUN rustup-init -y
# install rant
RUN cargo install --color=never rant --version 4.0.0-alpha.33 --root / --features cli
RUN mkdir -p /lib/wordlist
COPY ext/imsky/wordlists /lib/wordlist
#RUN python /lib/wordlist/render.py -o rant /app/rant/wordlist.rant
# prereqs
COPY app/requirements.txt /app/requirements.txt
RUN pip install -r /app/requirements.txt
# installing app
COPY app /app
WORKDIR /app
CMD [ "python", "index.wsgi" ]
EXPOSE 80
FROM base AS dev
COPY static /app/static