Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
-
# Use a specific version of the node image
|
2 |
FROM node:16-alpine
|
3 |
|
|
|
|
|
|
|
4 |
# Set working directory
|
5 |
WORKDIR /code
|
6 |
|
@@ -23,3 +26,4 @@ USER node
|
|
23 |
|
24 |
# Start Node.js application
|
25 |
CMD ["node", "index.js"]
|
|
|
|
1 |
+
# Use a specific version of the node image as a base
|
2 |
FROM node:16-alpine
|
3 |
|
4 |
+
# Install OpenJDK (Java)
|
5 |
+
RUN apk add --no-cache openjdk11
|
6 |
+
|
7 |
# Set working directory
|
8 |
WORKDIR /code
|
9 |
|
|
|
26 |
|
27 |
# Start Node.js application
|
28 |
CMD ["node", "index.js"]
|
29 |
+
|