d198250eab
* chore: switch to yarn BREAKING CHANGE: Pinafore is now using yarn rather than npm, so those who self-host will need to stop running e.g. `npm install` and run `yarn install` instead. * install latest yarn
24 lines
419 B
Docker
24 lines
419 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
|
|
|
|
# Install yarn
|
|
RUN npm i yarn -g
|
|
|
|
# Install Pinafore
|
|
RUN yarn --pure-lockfile
|
|
RUN yarn run build
|
|
|
|
# Expose port 4002
|
|
EXPOSE 4002
|
|
|
|
# Setting run-command
|
|
CMD PORT=4002 yarn start
|