blob: 27932cdaf6a50e6fae953c9207ba7a680b82fdc3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
FROM ghcr.io/python-discord/snekbox-base:latest
ARG DEV
ENV PIP_NO_CACHE_DIR=false \
PIPENV_DONT_USE_PYENV=1 \
PIPENV_HIDE_EMOJIS=1 \
PIPENV_NOSPIN=1
COPY Pipfile Pipfile.lock /snekbox/
WORKDIR /snekbox
RUN if [ -n "${DEV}" ]; \
then \
pipenv install --deploy --system --dev; \
else \
pipenv install --deploy --system; \
fi
# At the end to avoid re-installing dependencies when only a config changes.
COPY config/ /snekbox/config
|