41 lines
965 B
Docker
41 lines
965 B
Docker
FROM debian:bullseye-slim
|
|
|
|
LABEL maintainer="Kishan Takoordyal <kishan@kinesis.games>"
|
|
|
|
# Update package repositories
|
|
RUN apt update && \
|
|
apt upgrade -y
|
|
|
|
# Install some dependencies
|
|
RUN apt install -y iputils nano gcc glibc unzip build-essential curl
|
|
|
|
# Install NodeJS & npm
|
|
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash && \
|
|
apt install nodejs -y && \
|
|
node -v && \
|
|
npm i npm@latest -g && \
|
|
npm -v
|
|
|
|
# Install Rust compilers + cargo
|
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh && \
|
|
rustc --version && \
|
|
cargo version
|
|
|
|
# Test if Cargo works properly by running a hello world program
|
|
RUN cargo new hello_world && \
|
|
cd hello_world/ && \
|
|
cargo run
|
|
|
|
# Install latest version of Deno
|
|
RUN curl -fsSL https://deno.land/x/install/install.sh | sh && \
|
|
deno upgrade && \
|
|
deno --version
|
|
|
|
EXPOSE 80/tcp
|
|
EXPOSE 443/tcp
|
|
EXPOSE 8080/tcp
|
|
EXPOSE 3000/tcp
|
|
EXPOSE 20000/tcp
|
|
EXPOSE 21000/tcp
|
|
EXPOSE 3306/tcp
|