strapi docker conf

This commit is contained in:
tmshv committed 2021-01-26 22:04:17 +03:00
1 parent c9a1505168
commit 8745af028b
2 files changed
+21

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
*.db
node_modules
.env
.cache
.tmp
build
+15
View File
@@ -0,0 +1,15 @@
FROM node:14-alpine
RUN apk add --no-cache git
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
EXPOSE 80
ENV PORT 80
ENV NODE_ENV production
CMD ["sh", "-c", "npm start"]