1
0
mirror of https://github.com/nolanlawson/pinafore synced 2024-12-13 02:37:20 +01:00
Pinafore-Web-Client-Frontend/Dockerfile
2018-08-18 21:20:33 -07:00

24 lines
415 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 npm 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