-
Notifications
You must be signed in to change notification settings - Fork 0
/
web.Dockerfile
35 lines (24 loc) · 920 Bytes
/
web.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
30
31
32
33
34
35
#Deriving the ubuntu base image
FROM ubuntu:20.04
EXPOSE 80
USER root
ENV DEBIAN_FRONTEND noninteractive
RUN mkdir /opt/boehringeringelheim
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils
RUN apt-get install -y ffmpeg
RUN apt-get install -y build-essential libssl-dev ca-certificates libasound2 wget
WORKDIR /opt/boehringeringelheim
COPY ./requirements.txt ./requirements.txt
# Virtual Env
ENV VIRTUAL_ENV=/opt/venv
RUN apt-get install -y python3.10
RUN apt-get install -y python3-pip && python3 -m pip install --upgrade pip && python3 -m pip install virtualenv && virtualenv --python python3 $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
# Install dependencies
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install -r requirements.txt
RUN python3 -m pip freeze
# Copy repo folder to working directory
COPY ./ ./
RUN chmod a+x src/run_web.sh
CMD ["./src/run_web.sh"]