2018-05-25 03:59:48 +01:00
|
|
|
# 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
|
2018-08-19 05:20:33 +01:00
|
|
|
RUN apk add nodejs npm git python build-base clang
|
2018-05-25 03:59:48 +01:00
|
|
|
|
|
|
|
# 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
|
2018-08-19 05:20:33 +01:00
|
|
|
CMD PORT=4002 npm start
|