removing legacy shit, adding docker file

This commit is contained in:
wompmacho
2020-11-10 02:03:48 -05:00
parent de94c54617
commit 2291aaf340
4 changed files with 18 additions and 22 deletions

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM node:lts-alpine AS base
WORKDIR /app
COPY . .
RUN npm install && npm run build && npm ci --production
FROM mhart/alpine-node:slim AS final
WORKDIR /app
COPY --from=base app/static ./static
COPY --from=base app/node_modules ./node_modules
COPY --from=base app/__sapper__/build ./__sapper__/build
ENV PORT=80
EXPOSE 80
CMD ["node", "__sapper__/build"]