Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
|
|
| 1 |
FROM ghcr.io/engineer-man/piston:latest
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
# Expose the API port
|
| 4 |
EXPOSE 2000
|
| 5 |
|
| 6 |
-
# Start Piston API
|
| 7 |
CMD ["piston", "serve"]
|
|
|
|
| 1 |
+
# Use the official Piston image as the base
|
| 2 |
FROM ghcr.io/engineer-man/piston:latest
|
| 3 |
|
| 4 |
+
# Set the working directory
|
| 5 |
+
WORKDIR /piston
|
| 6 |
+
|
| 7 |
# Expose the API port
|
| 8 |
EXPOSE 2000
|
| 9 |
|
| 10 |
+
# Start the Piston API
|
| 11 |
CMD ["piston", "serve"]
|