mirror of
https://github.com/aleleba/ubuntu-22.04-gitea-runner-worker.git
synced 2026-04-19 07:17:00 -06:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
df27a5b559
|
|||
|
0601bf3664
|
|||
|
5bceed88c9
|
2
.github/workflows/main-workflow.yml
vendored
2
.github/workflows/main-workflow.yml
vendored
@@ -31,4 +31,4 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: gitea.p-lao.com/p-lao/ubuntu-node-apps:latest
|
||||
tags: gitea.p-lao.com/aleleba/ubuntu-24.04-gitea-runner-worker:latest
|
||||
|
||||
17
Dockerfile
17
Dockerfile
@@ -15,11 +15,18 @@ RUN apt-get -y install vim
|
||||
# update the base packages and install Xvfb
|
||||
RUN apt-get update -y && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2 libxtst6 xauth xvfb
|
||||
apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libnss3 libxss1 libasound2t64 libxtst6 xauth xvfb
|
||||
|
||||
# Installing Node.js
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
|
||||
apt-get install -y nodejs
|
||||
# Installing Node.js with nvm
|
||||
ENV NVM_DIR=/root/.nvm
|
||||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash && \
|
||||
. "$NVM_DIR/nvm.sh" && \
|
||||
nvm install 24 && \
|
||||
nvm use 24 && \
|
||||
nvm alias default 24 && \
|
||||
ln -sf "$NVM_DIR/versions/node/$(nvm version)/bin/node" /usr/local/bin/node && \
|
||||
ln -sf "$NVM_DIR/versions/node/$(nvm version)/bin/npm" /usr/local/bin/npm && \
|
||||
ln -sf "$NVM_DIR/versions/node/$(nvm version)/bin/npx" /usr/local/bin/npx
|
||||
# Finished installing Node.js
|
||||
|
||||
#Installing Docker
|
||||
@@ -36,7 +43,7 @@ RUN curl -sSL https://get.docker.com/ | sh
|
||||
VOLUME /var/lib/docker
|
||||
|
||||
#Install Docker Compose
|
||||
RUN sudo curl -L https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
|
||||
RUN sudo curl -L https://github.com/docker/compose/releases/download/v5.1.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
|
||||
RUN sudo chmod +x /usr/local/bin/docker-compose
|
||||
RUN docker-compose --version
|
||||
#Finishing Installing Docker Compose
|
||||
|
||||
Reference in New Issue
Block a user