Amio
5 years ago
2 changed files with 18 additions and 0 deletions
@ -0,0 +1,4 @@ |
|||||
|
.next |
||||
|
.github |
||||
|
node_modules |
||||
|
dist |
@ -0,0 +1,14 @@ |
|||||
|
FROM node:alpine AS build |
||||
|
WORKDIR / |
||||
|
COPY . . |
||||
|
RUN npm ci && npm run build |
||||
|
|
||||
|
FROM node:alpine |
||||
|
WORKDIR /app |
||||
|
COPY --from=build /dist . |
||||
|
ENTRYPOINT node /app/index.js |
||||
|
|
||||
|
COPY package* ./ |
||||
|
RUN npm ci --only=production |
||||
|
|
||||
|
EXPOSE 3000 |
Loading…
Reference in new issue