Skip to content

Commit 798d5a2

Browse files
committed
Docker
1 parent 4cc9fa5 commit 798d5a2

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

link_bio/.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.web
2+
__pycache__/*

link_bio/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM python:3.11
2+
3+
WORKDIR /app
4+
COPY . .
5+
6+
ENV VIRTUAL_ENV=/app/.venv_docker
7+
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
8+
RUN python3.11 -m venv $VIRTUAL_ENV
9+
10+
RUN pip install --upgrade pip
11+
RUN pip install --no-cache-dir -r requirements.txt
12+
13+
CMD reflex run --env prod --backend-only

0 commit comments

Comments
 (0)