-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (19 loc) · 746 Bytes
/
Dockerfile
File metadata and controls
26 lines (19 loc) · 746 Bytes
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
FROM postgres:13
ENV POSTGRES_USER=postgres
ENV POSTGRES_PASSWORD=postgres
WORKDIR /dfp
# Install tools
RUN apt-get update \
&& apt-get install -y --no-install-recommends python3.9 python3-pip wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install hadolint
RUN wget https://github.com/hadolint/hadolint/releases/download/v1.23.0/hadolint-Linux-x86_64 \
&& mv hadolint-Linux-x86_64 /usr/bin/hadolint \
&& chmod 555 /usr/bin/hadolint
# Install python dependencies
COPY requirements.txt ./
RUN pip install --no-cache-dir --upgrade pip && pip install --no-cache-dir -r requirements.txt
COPY . .
COPY patch_database.sql /docker-entrypoint-initdb.d
RUN echo "alias python=python3" >> ~/.bashrc