mirror of
https://github.com/alexankitty/Myrient-Search-Engine.git
synced 2026-01-15 16:33:15 -03:00
23 lines
359 B
Docker
23 lines
359 B
Docker
# Use Node.js LTS version
|
|
FROM node:20-slim
|
|
|
|
# Create app directory
|
|
WORKDIR /usr/src/app
|
|
|
|
# Copy package files
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm install
|
|
|
|
# Copy app source
|
|
COPY . .
|
|
|
|
# Create data directory for persistent files
|
|
RUN mkdir -p /usr/src/app/data
|
|
|
|
# Expose the port
|
|
EXPOSE 8062
|
|
|
|
# Start the application
|
|
CMD ["node", "server.js"] |