-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
28 lines (22 loc) · 835 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# ruby:2.6.6 pinned for now, required by lich scripts in https://github.com/rpherbig/dr-scripts/
FROM ruby:2.6.6 as base
# secrets still come from config.py which is mounted
# FUTURE: secrets can come from .env when docker-compose entrypoint is hit...
# gtk2 no longer necessary in current lich? working fine without...
RUN gem install sqlite3
# lazy setup dependencies, this could be more explicit for pyenv/pipenv
RUN apt-get update
# this gets used to setup pipenv, then the volume shadows it
RUN mkdir /app
WORKDIR /app
COPY Pipfile Pipfile
COPY Pipfile.lock Pipfile.lock
COPY .python-version .python-version
# set up pyenv
ENV PYENV_ROOT /.pyenv
RUN curl https://pyenv.run | bash
ENV PATH $PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH
RUN pyenv install
# set up pipenv
RUN pyenv exec pip install pipenv
RUN pyenv exec pipenv sync