-
Notifications
You must be signed in to change notification settings - Fork 242
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) · 700 Bytes
/
Dockerfile
File metadata and controls
31 lines (24 loc) · 700 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
FROM phusion/baseimage:0.9.19
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
ENV TERM=xterm-256color
# Set the locale
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
# Install necessary packages
RUN apt-get update && apt-get install -y \
build-essential \
python3-pip
# Install Python requirements
RUN mkdir -p /usr/src/app
COPY requirements.txt /usr/src/app/
RUN pip3 install --upgrade pip
RUN pip3 install -r /usr/src/app/requirements.txt
# Copy the files from the host to the container
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN chmod 777 -R *
# Clean up
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*