142b83cc13
New features: - Automatic error reporting (enabled by default) - Increase build times by leveraging docker build caches - Fixes: - Fix error handling - Fix vue autodetect - Custom dockerfile is not the default Others: - Cleanup `logs-servers` collection, because old errors are not standardized - New Traefik proxy version - Standardized directory configurations
15 lines
685 B
Plaintext
15 lines
685 B
Plaintext
FROM node:lts
|
|
LABEL coolify-preserve=true
|
|
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
|
|
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
|
|
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 .
|
|
RUN pnpm install
|
|
COPY . .
|
|
RUN pnpm build
|
|
CMD ["pnpm", "start"]
|
|
EXPOSE 3000 |