images/pinafore/Containerfile

16 lines
356 B
Plaintext
Raw Normal View History

2022-11-23 02:02:05 +00:00
FROM reg.zknt.org/zknt/node:18
2022-11-10 10:42:56 +00:00
2022-12-11 23:39:12 +00:00
ENV VERSION v2.5.0
2022-11-10 10:42:56 +00:00
RUN set -xe;\
curl -LO https://github.com/nolanlawson/pinafore/archive/${VERSION}.tar.gz &&\
mkdir /app &&\
tar --strip-components=1 -C /app -xvzf ${VERSION}.tar.gz &&\
cd /app &&\
yarn --production --pure-lockfile &&\
yarn build
EXPOSE 8080
WORKDIR /app
ENTRYPOINT PORT=8080 node server.js