Spaces:
Running
Running
Upload Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
@@ -22,5 +22,9 @@ COPY app.py .
|
|
22 |
# Expose the port Dash will run on
|
23 |
EXPOSE 7860
|
24 |
|
|
|
|
|
|
|
|
|
25 |
# Run the app
|
26 |
CMD ["python", "app.py"]
|
|
|
22 |
# Expose the port Dash will run on
|
23 |
EXPOSE 7860
|
24 |
|
25 |
+
# Example of using a build-time secret
|
26 |
+
RUN --mount=type=secret,id=MATERIALS_PROJECT_API_KEY \
|
27 |
+
echo "Using secret during build"
|
28 |
+
|
29 |
# Run the app
|
30 |
CMD ["python", "app.py"]
|