tassd commited on
Commit
417d0b9
1 Parent(s): 317aefd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -8
Dockerfile CHANGED
@@ -1,13 +1,19 @@
1
- FROM ramonvc/freegpt-webui:latest
 
2
 
3
- # Set the working directory
4
  WORKDIR /app
5
 
6
- # Copy the files from the Space
7
- COPY . /app
 
 
 
8
 
9
- # Expose the port
10
- EXPOSE 1338
 
11
 
12
- # Run the application
13
- CMD ["python", "app.py"]
 
 
1
+ # Base image
2
+ FROM python:3.10-slim-buster
3
 
4
+ # Working directory
5
  WORKDIR /app
6
 
7
+ # Install dependencies
8
+ COPY requirements.txt requirements.txt
9
+ RUN python -m venv venv
10
+ ENV PATH="/app/venv/bin:$PATH"
11
+ RUN apt-get update && apt-get install -y --no-install-recommends build-essential libffi-dev cmake libcurl4-openssl-dev && pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Copy source code
14
+ COPY . .
15
+ RUN chmod -R 777 translations
16
 
17
+ # Expose port and start command
18
+ EXPOSE 8080
19
+ CMD ["python3", "./run.py"]