separate code-server + many improvements

This commit is contained in:
Kishan Takoordyal
2021-02-12 16:31:43 +04:00
parent 0e7594d4b4
commit 13f3009098
7 changed files with 169 additions and 17 deletions

View File

@@ -2,6 +2,8 @@ FROM debian:bullseye-slim
LABEL maintainer="Kishan Takoordyal <kishan@kinesis.games>"
# ARG NEW_PASSWORD=""
# Update package repositories
RUN apt update && \
apt upgrade -y
@@ -29,7 +31,9 @@ RUN rustc --version && \
# Test if Cargo works properly by running a hello world program
RUN cargo new hello_world && \
cd hello_world/ && \
cargo run
cargo run && \
cd ../ && \
rm -rf hello_world/
# Install latest version of Deno
RUN curl -fsSL https://deno.land/x/install/install.sh | sh && \
@@ -43,22 +47,28 @@ RUN deno upgrade && \
deno --version && \
deno run https://deno.land/std/examples/welcome.ts
# Install code-server
RUN curl -fsSL https://code-server.dev/install.sh | sh
# Install yarn and code-server
# RUN curl -fsSL https://code-server.dev/install.sh | sh
# RUN npm i yarn@latest -g && \
# yarn add global code-server
# Install other tools if needed
RUN apt update && \
apt install git nano apache2 -y && \
apt install git nano curl wget apache2 -y && \
service apache2 start
# Enable Apache modules and restart apache
RUN a2enmod rewrite deflate headers proxy proxy_ajp proxy_http proxy_wstunnel ssl && \
service apache2 restart
# Install SSH Server to be able to connect from code-server container
RUN apt install openssh-server -y && \
service ssh start && \
passwd -d root
EXPOSE 80/tcp
EXPOSE 443/tcp
EXPOSE 3000/tcp
EXPOSE 20000/tcp
EXPOSE 21000/tcp
EXPOSE 8080/tcp
EXPOSE 8888/tcp