Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
# Create a non-root user with a different UID
|
| 4 |
RUN useradd -m -u 1001 user
|
|
@@ -12,10 +12,10 @@ WORKDIR $HOME/app
|
|
| 12 |
COPY --chown=user . .
|
| 13 |
|
| 14 |
# Install dependencies (if there are any Node.js dependencies, list them here)
|
| 15 |
-
RUN
|
| 16 |
|
| 17 |
# Expose the desired port
|
| 18 |
EXPOSE 8080
|
| 19 |
|
| 20 |
# Command to run the script
|
| 21 |
-
CMD ["
|
|
|
|
| 1 |
+
FROM python
|
| 2 |
|
| 3 |
# Create a non-root user with a different UID
|
| 4 |
RUN useradd -m -u 1001 user
|
|
|
|
| 12 |
COPY --chown=user . .
|
| 13 |
|
| 14 |
# Install dependencies (if there are any Node.js dependencies, list them here)
|
| 15 |
+
RUN pip install requests
|
| 16 |
|
| 17 |
# Expose the desired port
|
| 18 |
EXPOSE 8080
|
| 19 |
|
| 20 |
# Command to run the script
|
| 21 |
+
CMD ["pythone", "run.py"]
|