Update Dockerfile
Browse files- Dockerfile +1 -5
Dockerfile
CHANGED
|
@@ -18,17 +18,13 @@ COPY requirements.txt .
|
|
| 18 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 19 |
|
| 20 |
# Copy the application code
|
| 21 |
-
COPY
|
| 22 |
COPY docker-entrypoint.sh .
|
| 23 |
|
| 24 |
# Make entrypoint executable
|
| 25 |
RUN chmod +x docker-entrypoint.sh
|
| 26 |
|
| 27 |
-
# Create non-root user for security
|
| 28 |
-
RUN useradd -m -u 1000 extractor && \
|
| 29 |
-
chown -R extractor:extractor /app
|
| 30 |
|
| 31 |
-
USER extractor
|
| 32 |
|
| 33 |
# Expose volume for extracted files
|
| 34 |
VOLUME ["/app/extracted", "/app/state"]
|
|
|
|
| 18 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 19 |
|
| 20 |
# Copy the application code
|
| 21 |
+
COPY main.py .
|
| 22 |
COPY docker-entrypoint.sh .
|
| 23 |
|
| 24 |
# Make entrypoint executable
|
| 25 |
RUN chmod +x docker-entrypoint.sh
|
| 26 |
|
|
|
|
|
|
|
|
|
|
| 27 |
|
|
|
|
| 28 |
|
| 29 |
# Expose volume for extracted files
|
| 30 |
VOLUME ["/app/extracted", "/app/state"]
|