Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2020 Hathor Labs
# This software is provided ‘as-is’, without any express or implied
# warranty. In no event will the authors be held liable for any damages
# arising from the use of this software.
# This software cannot be redistributed unless explicitly agreed in writing with the authors.

FROM node:14 AS builder

COPY package.json /app/

RUN cd /app && npm install --production

COPY . /app/

RUN cd /app && npm run build

FROM node:14-alpine3.13 AS builder
Comment thread
msbrogli marked this conversation as resolved.

COPY --from=builder /app/dist/ /app/
COPY --from=builder /app/node_modules /app/node_modules

CMD node /app/index.js