2021-04-19 07:46:05 +00:00
|
|
|
FROM node:lts
|
2021-04-15 20:40:44 +00:00
|
|
|
LABEL coolify-preserve=true
|
2021-04-19 07:46:05 +00:00
|
|
|
WORKDIR /usr/src/app
|
|
|
|
RUN curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-20.10.6.tgz | tar -xzvf - docker/docker -C . --strip-components 1
|
|
|
|
RUN mv /usr/src/app/docker /usr/bin/docker
|
2021-04-15 20:40:44 +00:00
|
|
|
RUN curl -L https://github.com/a8m/envsubst/releases/download/v1.2.0/envsubst-`uname -s`-`uname -m` -o /usr/bin/envsubst
|
|
|
|
RUN curl -L https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -o /usr/bin/jq
|
2021-04-19 07:46:05 +00:00
|
|
|
RUN chmod +x /usr/bin/envsubst /usr/bin/jq /usr/bin/docker
|
|
|
|
RUN curl -f https://get.pnpm.io/v6.js | node - add --global pnpm
|
|
|
|
COPY ./*package.json .
|
2021-04-15 20:40:44 +00:00
|
|
|
RUN pnpm install
|
2021-04-19 07:46:05 +00:00
|
|
|
COPY . .
|
2021-04-15 20:40:44 +00:00
|
|
|
RUN pnpm build
|
|
|
|
CMD ["pnpm", "start"]
|
|
|
|
EXPOSE 3000
|