-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (26 loc) · 999 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
26
27
28
29
30
31
32
33
34
35
36
# Instructions:
# sudo docker build -t daimo-image .
# sudo docker run -d -p 8080:8080 daimo-image
# Use the official Python image as the base image
FROM python:3.9
# Set the working directory inside the container
WORKDIR /app
# Clone the Git repository
RUN apt-get update && \
apt-get install -y git && \
git clone https://github.com/jsurrea/DAIMO.git
# Change the working directory to /app/DAIMO
WORKDIR /app/DAIMO
# Copy the requirements file into the container at /app
COPY requirements.txt /app/
# Install any dependencies specified in requirements.txt
RUN pip install --upgrade pip && pip install -r requirements.txt
# Copy the current directory contents into the container at /app
COPY . /app/
# Expose the port that your app will run on
EXPOSE 8080
# Install locales
RUN apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
# Command to run the application
CMD ["python3", "app.py"]