瀏覽代碼

Fix npm install in Dockerfile to only install production packages

tags/v0.4^2
Vildravn 4 年之前
父節點
當前提交
ba17eba7d7
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      Dockerfile

+ 3
- 3
Dockerfile 查看文件

@@ -10,11 +10,11 @@ COPY . .
# Change directory to src/server/
WORKDIR /usr/src/isleward/src/server/

# Install npm modules specified in package.json
RUN npm install --only-production
# Install only production npm modules specified in package.json
RUN npm install --only=production

# Expose container's port 4000
EXPOSE 4000

# Launch Isleward server
CMD ["node", "index.js"]
CMD ["node", "index.js"]

Loading…
取消
儲存