From 27fa812bbc8d0b155dda7ac081f42ad1ece5682b Mon Sep 17 00:00:00 2001 From: Wojtek Siudzinski Date: Tue, 16 Dec 2025 14:22:52 +0100 Subject: [PATCH] Add Dockerfile and Docker Compose configuration Signed-off-by: Wojtek Siudzinski --- .dockerignore | 50 ++++++++++++++++++++++++++++++++++ Dockerfile | 67 ++++++++++++++++++++++++++++++++++++++++++++++ docker-compose.yml | 45 +++++++++++++++++++++++++++++++ 3 files changed, 162 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 docker-compose.yml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 000000000..96306ac7e --- /dev/null +++ b/.dockerignore @@ -0,0 +1,50 @@ +# Dependencies +node_modules +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + +# Build outputs +dist +dist-ssr +*.local + +# IDE +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? + +# Testing +coverage +.nyc_output +cypress/videos +cypress/screenshots + +# Environment +.env +.env.local +.env.*.local + +# Git +.git +.gitignore +.gitattributes + +# Documentation +*.md +!README.md + +# CI/CD +.github + +# Misc +.eslintcache +.prettierignore +*.log diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..54d105703 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: Apache-2.0 +# Copyright 2020 - 2025 Contributors to EVerest + +# Build stage +FROM node:22-alpine AS builder + +# Set working directory +WORKDIR /app + +# Copy package files +COPY package.json package-lock.json* ./ + +# Install dependencies +RUN npm ci + +# Copy source code +COPY . . + +# Build the application +RUN npm run build + +# Production stage +FROM nginx:alpine + +# Copy nginx configuration +COPY <