mirror of
https://github.com/nolanlawson/pinafore
synced 2024-12-12 18:28:03 +01:00
91f954de36
fixes #971
26 lines
559 B
Docker
26 lines
559 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 build
|
|
|
|
# Expose port 4002
|
|
EXPOSE 4002
|
|
|
|
# Setting run-command, using explicit `node` command
|
|
# rather than `yarn` or `npm` to use less memory
|
|
# https://github.com/nolanlawson/pinafore/issues/971
|
|
CMD PORT=4002 node __sapper__/build
|