aico / Dockerfile
adowu's picture
Update Dockerfile
1321d53 verified
raw
history blame contribute delete
No virus
682 Bytes
# Użyj obrazu Python 3.9 jako podstawy
FROM python:3.9
# Zainstaluj Node.js i npm
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
RUN apt-get update && apt-get install -y \
sudo \
nodejs
# Utwórz nowego użytkownika o nazwie "user" z identyfikatorem UID 1000
RUN sudo useradd -m -u 1000 user
# Ustaw katalog roboczy na /app
WORKDIR /app
# Sklonuj repozytorium OpenSumi IDE z GitHub
RUN git clone https://github.com/opensumi/ide-startup
# Zmień katalog na ide-startup
WORKDIR /app/ide-startup
# Zainstaluj zależności za pomocą Yarn
RUN sudo npm install -g yarn
RUN sudo yarn
EXPOSE 8080
# Ustaw polecenie uruchamiania kontenera
CMD ["yarn", "start"]