Skip to content

Commit b7573b7

Browse files
authored
Create Dockerfile
Dockerfile for creating a Docker image yourself Then we can create an image using the following commands: git clone https://github.com/VadimBoev/freegpt-webui-v2.git cd freegpt-webui-v2 docker build -f Dockerfile -t freegpt-webui-v2 . docker run -p 1338:1338 freegpt-webui-v2:latest
1 parent ddebf03 commit b7573b7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Dockerfile

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM python:3.10-slim-buster
2+
3+
WORKDIR /app
4+
5+
COPY requirements.txt requirements.txt
6+
7+
RUN python -m venv venv
8+
ENV PATH="/app/venv/bin:$PATH"
9+
10+
RUN pip install --upgrade pip && \
11+
pip install --no-cache-dir -r requirements.txt
12+
13+
COPY . .
14+
15+
RUN chmod -R 777 translations
16+
17+
CMD ["python3", "./run.py"]

0 commit comments

Comments
 (0)