Merge pull request #173 from getmaxun/docker-img
feat: publish docker image
This commit is contained in:
11
.dockerignore
Normal file
11
.dockerignore
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
node_modules
|
||||||
|
npm-debug.log
|
||||||
|
dist
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
.env
|
||||||
|
.md
|
||||||
|
.vscode
|
||||||
|
coverage
|
||||||
|
docker-compose.yml
|
||||||
|
Dockerfile
|
||||||
@@ -41,8 +41,9 @@ services:
|
|||||||
|
|
||||||
backend:
|
backend:
|
||||||
build:
|
build:
|
||||||
context: .
|
#context: .
|
||||||
dockerfile: server/Dockerfile
|
#dockerfile: server/Dockerfile
|
||||||
|
image: getmaxun/maxun-backend:latest
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
env_file: .env
|
env_file: .env
|
||||||
@@ -68,8 +69,9 @@ services:
|
|||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
build:
|
build:
|
||||||
context: .
|
#context: .
|
||||||
dockerfile: Dockerfile
|
#dockerfile: Dockerfile
|
||||||
|
image: getmaxun/maxun-frontend:latest
|
||||||
ports:
|
ports:
|
||||||
- "5173:5173"
|
- "5173:5173"
|
||||||
env_file: .env
|
env_file: .env
|
||||||
|
|||||||
@@ -18,33 +18,6 @@ RUN npm install
|
|||||||
# Install Playwright browsers and dependencies
|
# Install Playwright browsers and dependencies
|
||||||
RUN npx playwright install --with-deps chromium
|
RUN npx playwright install --with-deps chromium
|
||||||
|
|
||||||
# Install xvfb for display support
|
|
||||||
#RUN apt-get update && apt-get install -y xvfb
|
|
||||||
|
|
||||||
# RUN apt-get update && apt-get install -y \
|
|
||||||
# libgbm-dev \
|
|
||||||
# libxkbcommon-x11-0 \
|
|
||||||
# libxcomposite1 \
|
|
||||||
# libxdamage1 \
|
|
||||||
# libxrandr2 \
|
|
||||||
# libxshmfence1 \
|
|
||||||
# libxtst6 \
|
|
||||||
# libnss3 \
|
|
||||||
# libatk1.0-0 \
|
|
||||||
# libatk-bridge2.0-0 \
|
|
||||||
# libdrm2 \
|
|
||||||
# libxcb1 \
|
|
||||||
# libxkbcommon0 \
|
|
||||||
# fonts-noto-color-emoji \
|
|
||||||
# fonts-unifont \
|
|
||||||
# libpango-1.0-0 \
|
|
||||||
# libcairo2 \
|
|
||||||
# libasound2 \
|
|
||||||
# libglib2.0-0 \
|
|
||||||
# libdbus-1-3 \
|
|
||||||
# && rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# Create and set permissions for chrome directories
|
|
||||||
# Create the Chromium data directory with necessary permissions
|
# Create the Chromium data directory with necessary permissions
|
||||||
RUN mkdir -p /tmp/chromium-data-dir && \
|
RUN mkdir -p /tmp/chromium-data-dir && \
|
||||||
chmod -R 777 /tmp/chromium-data-dir
|
chmod -R 777 /tmp/chromium-data-dir
|
||||||
|
|||||||
Reference in New Issue
Block a user