pinafore/Dockerfile
Koyu Berteon d79de35603 Added Dockerfile (#313)
* Added Dockerfile

* Better comments in Dockerfile

* Added SIGINT handler

* Keeping code-check happy

* Keeping code-check happy v2

* Keeping code-check happy v2
2018-05-24 19:59:48 -07:00

23 lines
410 B
Docker

# Using Alpine to keep the images smaller
FROM alpine:latest
# Pushing all files into image
WORKDIR /app
ADD . /app
# Install updates and NodeJS+Dependencies
RUN apk update && apk upgrade
RUN apk add nodejs git python build-base clang
# Upgrading NPM
RUN npm i npm@latest -g
# Install Pinafore
RUN npm install
RUN npm run build
# Expose port 4002
EXPOSE 4002
# Setting run-command
CMD PORT=4002 npm start