-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (29 loc) · 695 Bytes
/
Dockerfile
File metadata and controls
35 lines (29 loc) · 695 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
27
28
29
30
31
32
33
34
35
FROM debian:stable-slim
WORKDIR /app
COPY . /app
RUN apt-get update && \
apt-get install \
--no-install-recommends \
python3 \
python3-pip \
python3-venv \
nodejs \
npm \
-y && \
cd react && \
npm install && \
npm run build && \
cd .. && \
rm -r react && \
python3 -m venv app_py_env && \
. app_py_env/bin/activate && \
pip3 install -r requirements.txt && \
# Remove apt cache
rm -rf /var/cache/apt && \
# Remove unused packages
apt-get remove python3-pip nodejs npm -y && \
apt autoremove -y && \
apt autoclean -y
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]