strapi docker conf
This commit is contained in:
1 parent
c9a1505168
commit
8745af028b
2 files changed
+21
No files matched your search
@@ -0,0 +1,6 @@
|
||||
*.db
|
||||
node_modules
|
||||
.env
|
||||
.cache
|
||||
.tmp
|
||||
build
|
||||
@@ -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"]
|
||||
Reference in new issue
Block a user