-
Notifications
You must be signed in to change notification settings - Fork 125
/
Copy pathDockerfile
26 lines (19 loc) · 894 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
# Dockerfile for the USAspending Backend API
# When built with docker compose --profile usaspending build,
# it will be built and tagged with the name in the image: key of the docker compose services that use this default Dockerfile
# Since requirements are copied into the image at build-time, this MUST be rebuilt if Python requirements change
# See docker-compose.yml file and README.md for docker compose information
FROM python:3.10.12-slim-bullseye
WORKDIR /dockermount
RUN apt update && apt install -y \
curl \
gcc \
libpq-dev \
postgresql-13
##### Copy python packaged
COPY . /dockermount
RUN python3 -m pip install -r requirements/requirements.txt && \
python3 -m pip install -r requirements/requirements-server.txt && \
python3 -m pip install ansible==2.9.15 awscli==1.34.19
##### Ensure Python STDOUT gets sent to container logs
ENV PYTHONUNBUFFERED=1