15 lines
365 B
Docker
15 lines
365 B
Docker
FROM reg.zknt.org/zknt/node:18
|
|
|
|
ENV VERSION 1.0.0
|
|
|
|
RUN set -xe;\
|
|
curl -LO https://github.com/NickColley/semaphore/archive/refs/tags/${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
|