Add dockerfile

This commit is contained in:
Thomas Wade 2022-05-15 15:39:02 +09:30
parent 58492619e7
commit 9839997ad7
Signed by: tom
GPG Key ID: CC76492CBE11E715
2 changed files with 25 additions and 0 deletions

11
.dockerignore Normal file
View File

@ -0,0 +1,11 @@
# Ignore node_modules
node_modules/
# Ignore README
README.md
# Ignore Dockerfile
Dockerfile
#Ignore dotfiles
.*

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM alpine:latest
# Install package manager dependencies
RUN apk add --no-cache nodejs npm
# Copy in data
WORKDIR /app/
COPY . .
# Install npm dependencies
RUN npm i
EXPOSE 8000/tcp
CMD ["npm", "start"]