mirror of
https://github.com/cupcakearmy/coolify.git
synced 2024-10-22 16:14:22 +02:00
bad84289c4
Features:
- Rust support 🦀 (Thanks to @pepoviola)
- Add a default rewrite rule to PHP apps (to index.php)
- Able to control upgrades in a straightforward way
Fixes:
- Improved upgrade scripts
- Simplified prechecks before deployment
- Fixed path deployments
- Fixed already defined apps redirections
- Better error handling - still needs a lot of improvement here!
24 lines
1.0 KiB
Plaintext
24 lines
1.0 KiB
Plaintext
FROM ubuntu:20.04 as binaries
|
|
LABEL coolify-preserve=true
|
|
RUN apt update && apt install -y curl gnupg2 ca-certificates
|
|
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
|
|
RUN echo 'deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable' >> /etc/apt/sources.list
|
|
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
|
|
RUN apt update && apt install -y docker-ce-cli && apt clean all
|
|
|
|
FROM node:lts
|
|
WORKDIR /usr/src/app
|
|
LABEL coolify-preserve=true
|
|
COPY --from=binaries /usr/bin/docker /usr/bin/docker
|
|
COPY --from=binaries /usr/bin/envsubst /usr/bin/envsubst
|
|
COPY --from=binaries /usr/bin/jq /usr/bin/jq
|
|
COPY . .
|
|
RUN curl -f https://get.pnpm.io/v6.js | node - add --global pnpm@6
|
|
RUN pnpm install
|
|
RUN pnpm build
|
|
RUN rm -fr node_modules .pnpm-store
|
|
RUN pnpm install -P
|
|
CMD ["pnpm", "start"]
|
|
EXPOSE 3000 |