-
Notifications
You must be signed in to change notification settings - Fork 109
/
Dockerfile
25 lines (17 loc) · 898 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
# 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.8.16-slim-bullseye
WORKDIR /dockermount
RUN apt update && \
apt install -y gcc postgresql-13
##### Copy python packaged
WORKDIR /dockermount
# COPY requirements/ /dockermount/requirements/
COPY . /dockermount
RUN python3 -m pip install -r requirements/requirements.txt -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