Create Dockerfile
Browse files- Dockerfile +12 -0
Dockerfile
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:18-alpine
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
# 克隆项目
|
| 6 |
+
RUN apk add --no-cache git && \
|
| 7 |
+
git clone https://github.com/xiao-cold/efilen-webdav.git . && \
|
| 8 |
+
npm install --production
|
| 9 |
+
|
| 10 |
+
EXPOSE 8888
|
| 11 |
+
|
| 12 |
+
CMD ["npm", "start"]
|