Spaces:
Running
Running
Ashwin V. Mohanan
commited on
Commit
·
f03fdde
1
Parent(s):
ce33d92
Docker copy source files
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -46,7 +46,7 @@ RUN useradd -m -u 1000 appuser
|
|
46 |
WORKDIR /home/appuser/app
|
47 |
|
48 |
# Copy dependency files and install dependencies
|
49 |
-
COPY --chown=appuser pyproject.toml uv.lock LICENSE README.md ./
|
50 |
RUN uv sync --frozen --no-cache \
|
51 |
&& chown -R appuser:appuser /home/appuser/app/.venv \
|
52 |
&& rm -rf /root/.cache /home/appuser/.cache
|
@@ -54,7 +54,9 @@ RUN uv sync --frozen --no-cache \
|
|
54 |
|
55 |
# Copy application code
|
56 |
COPY --chown=appuser app app
|
57 |
-
COPY --chown=appuser
|
|
|
|
|
58 |
|
59 |
# Ensure non-root user has write access to cache and tmp directories
|
60 |
RUN mkdir -p /home/appuser/.cache/transformers /home/appuser/tmp /home/appuser/.cache \
|
|
|
46 |
WORKDIR /home/appuser/app
|
47 |
|
48 |
# Copy dependency files and install dependencies
|
49 |
+
COPY --chown=appuser pyproject.toml dawsonia.toml uv.lock LICENSE README.md ./
|
50 |
RUN uv sync --frozen --no-cache \
|
51 |
&& chown -R appuser:appuser /home/appuser/app/.venv \
|
52 |
&& rm -rf /root/.cache /home/appuser/.cache
|
|
|
54 |
|
55 |
# Copy application code
|
56 |
COPY --chown=appuser app app
|
57 |
+
COPY --chown=appuser table_formats table_formats
|
58 |
+
COPY --chown=appuser examples examples
|
59 |
+
COPY --chown=appuser output output
|
60 |
|
61 |
# Ensure non-root user has write access to cache and tmp directories
|
62 |
RUN mkdir -p /home/appuser/.cache/transformers /home/appuser/tmp /home/appuser/.cache \
|