*: initial commit
Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
16
.gitea/workflows/build-image.yml
Normal file
16
.gitea/workflows/build-image.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
name: Build Docker Image
|
||||||
|
run-name: Build Docker Image
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Build Docker Image:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Build docker image
|
||||||
|
run: |
|
||||||
|
set +e
|
||||||
|
docker image rm -f ubuntu-node:latest
|
||||||
|
set -e
|
||||||
|
docker build . -t ubuntu-node:latest
|
||||||
5
Dockerfile
Normal file
5
Dockerfile
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
FROM docker.gitea.com/runner-images:ubuntu-latest
|
||||||
|
|
||||||
|
RUN sudo sed -i 's@http://archive.ubuntu.com@http://mirror.kku.ac.th@g' /etc/apt/sources.list.d/ubuntu.sources
|
||||||
|
RUN sudo apt update && sudo apt upgrade -y
|
||||||
|
RUN sudo apt install nodejs npm curl -y
|
||||||
Reference in New Issue
Block a user