[sandbox] Add docker files
This commit is contained in:
parent
544f5390cd
commit
36a8050a4b
39
sandbox/Dockerfile
Normal file
39
sandbox/Dockerfile
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
|
||||||
|
RUN apt-get install curl -y
|
||||||
|
|
||||||
|
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
|
||||||
|
|
||||||
|
RUN apt-get install git -y
|
||||||
|
|
||||||
|
RUN git config --global user.name "Admin"
|
||||||
|
|
||||||
|
RUN git config --global user.email noemail@example.com
|
||||||
|
|
||||||
|
WORKDIR /opt
|
||||||
|
|
||||||
|
RUN apt-get install wget -y
|
||||||
|
|
||||||
|
RUN wget -O java.tar.gz https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.7%2B7/OpenJDK17U-jdk_x64_linux_hotspot_17.0.7_7.tar.gz
|
||||||
|
|
||||||
|
RUN tar -xzvf java.tar.gz
|
||||||
|
|
||||||
|
RUN rm java.tar.gz
|
||||||
|
|
||||||
|
ENV JAVA_PATH=/opt/jdk-17.0.7+7/bin
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY package*.json ./
|
||||||
|
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
CMD ["node", "dist"]
|
8
sandbox/docker-compose.yml
Normal file
8
sandbox/docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
version: '3'
|
||||||
|
services:
|
||||||
|
sandbox:
|
||||||
|
build: .
|
||||||
|
environment:
|
||||||
|
- ADMIN_URL=http://localhost:5173
|
||||||
|
- REPO_URL=http://localhost:7006
|
||||||
|
network_mode: 'host'
|
Loading…
Reference in New Issue
Block a user