Dmtlant commited on
Commit
bcafd14
·
verified ·
1 Parent(s): 53df126

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -13
Dockerfile CHANGED
@@ -1,19 +1,20 @@
1
- # Используем официальный образ Python 3.9
2
- FROM python:3.9-slim
3
 
4
- # Устанавливаем рабочий каталог
5
  WORKDIR /app
6
 
7
- # Копируем файлы в рабочий каталог
8
- COPY . /app
 
 
 
9
 
10
- # Устанавливаем зависимости
11
- RUN pip install --upgrade pip
12
- RUN pip install brian2 plotly
13
 
14
- # Устанавливаем переменные окружения
15
- ENV LC_ALL=C.UTF-8
16
- ENV LANG=C.UTF-8
17
 
18
- # Запускаем приложение
19
- CMD ["python", "app.py"]
 
1
+ # Use an official Python runtime as the base image
2
+ FROM python:3.8-slim
3
 
4
+ # Set the working directory in the container
5
  WORKDIR /app
6
 
7
+ # Copy the current directory contents into the container at /app
8
+ COPY requirements.txt /app/
9
+
10
+ # Install any needed packages specified in requirements.txt
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Copy the application code
14
+ COPY . /app
 
15
 
16
+ # Make port 8000 available to the world outside this container
17
+ EXPOSE 8000
 
18
 
19
+ # Run the application
20
+ CMD ["python", "your_script.py"]