Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
217dc61
commit e0e95f9
Showing
1 changed file
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
FROM golang:latest as go-env | ||
FROM rust:latest as rust-env | ||
|
||
FROM node:lts | ||
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | ||
|
||
# Install TypeScript Toolchain | ||
RUN npm i -g esbuild | ||
# Install Rust Toolchain | ||
RUN curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y | ||
# Install Python Toolchain | ||
RUN apt update && apt install -y software-properties-common && add-apt-repository ppa:deadsnakes/ppa && apt update && apt install -y python | ||
RUN rm /usr/bin/python && ln -s /usr/bin/python3 /usr/bin/python | ||
# Install Go Toolchain | ||
RUN curl -LO https://get.golang.org/$(uname)/go_installer && chmod +x go_installer && ./go_installer && rm go_installer | ||
COPY --from=go-env /usr/local/go /usr/local/go | ||
ENV PATH=$PATH:/usr/local/go/bin | ||
# Install Rust Toolchain | ||
COPY --from=rust-env /usr/local/cargo /usr/local/cargo | ||
ENV PATH=$PATH:/usr/local/cargo/bin | ||
RUN rustup default stable | ||
|
||
WORKDIR /app | ||
COPY . . | ||
RUN npx -y pnpm i | ||
|
||
CMD [ "node", "dist/index.js" ] | ||
ENTRYPOINT [ "node", "dist/index.js" ] |