feat(pinafore): import Containerfile
This commit is contained in:
parent
32eedd6665
commit
cbfea0ac5a
|
@ -0,0 +1,15 @@
|
||||||
|
FROM reg.zknt.org/zknt/node
|
||||||
|
|
||||||
|
ENV VERSION v2.2.1
|
||||||
|
|
||||||
|
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
|
Loading…
Reference in New Issue