Spaces:
Paused
Paused
Commit
·
f376151
1
Parent(s):
784d41f
Create Dockerfile
Browse files- Dockerfile +19 -0
Dockerfile
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:16
|
| 2 |
+
|
| 3 |
+
# Create app directory
|
| 4 |
+
WORKDIR /usr/src/app
|
| 5 |
+
|
| 6 |
+
# Install app dependencies
|
| 7 |
+
# A wildcard is used to ensure both package.json AND package-lock.json are copied
|
| 8 |
+
# where available (npm@5+)
|
| 9 |
+
COPY package*.json ./
|
| 10 |
+
|
| 11 |
+
RUN npm install
|
| 12 |
+
# If you are building your code for production
|
| 13 |
+
# RUN npm ci --only=production
|
| 14 |
+
|
| 15 |
+
# Bundle app source
|
| 16 |
+
COPY . .
|
| 17 |
+
|
| 18 |
+
EXPOSE 8080
|
| 19 |
+
CMD [ "node", "server.js" ]
|