Spaces:
Paused
Paused
nroggendorff
commited on
Commit
•
40bc740
1
Parent(s):
b31e28b
when ready
Browse files- Dockerfile +18 -0
Dockerfile
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9
|
2 |
+
|
3 |
+
RUN useradd -m -u 1000 user
|
4 |
+
USER user
|
5 |
+
ENV PATH="/home/user/.local/bin:$PATH"
|
6 |
+
|
7 |
+
WORKDIR /app
|
8 |
+
COPY --chown=user ./requirements.txt requirements.txt
|
9 |
+
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
10 |
+
|
11 |
+
COPY --chown=user . /app
|
12 |
+
|
13 |
+
RUN touch __init__.py
|
14 |
+
RUN mv config config.py
|
15 |
+
|
16 |
+
RUN python prep.py
|
17 |
+
|
18 |
+
CMD ["python", "train.py"]
|