Add dockerfile
This commit is contained in:
parent
58492619e7
commit
9839997ad7
11
.dockerignore
Normal file
11
.dockerignore
Normal file
@ -0,0 +1,11 @@
|
||||
# Ignore node_modules
|
||||
node_modules/
|
||||
|
||||
# Ignore README
|
||||
README.md
|
||||
|
||||
# Ignore Dockerfile
|
||||
Dockerfile
|
||||
|
||||
#Ignore dotfiles
|
||||
.*
|
||||
14
Dockerfile
Normal file
14
Dockerfile
Normal 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"]
|
||||
Loading…
x
Reference in New Issue
Block a user