-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
29 lines (23 loc) · 1.01 KB
/
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
29
FROM python:3.13.1
ENV PATH="/root/.local/bin:${PATH}"
# Install postgres client
RUN wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O - | apt-key add - && \
echo "deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main" >> /etc/apt/sources.list.d/pgdg.list && \
apt-get update -y && \
apt-get install -y postgresql-client-12 tzdata && \
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
apt-get install -y nodejs && \
rm -rf /var/lib/apt/lists/*
# Install Heroku client
RUN curl https://cli-assets.heroku.com/install.sh | sh
# Install poetry
RUN curl -sSL https://install.python-poetry.org | python3 -
# Add files
ADD . /app
WORKDIR /app
# Install client dependencies and update path to include poetry and node module executables
RUN npm install && \
echo "export PATH=~/.local/bin:/app/node_modules/.bin:/app/client/node_modules/.bin:\$PATH\n" >> /root/.bashrc
# Run poetry to install dependencies
RUN poetry config virtualenvs.create false && \
poetry install