Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit f2a797a

Browse files
author
Dushyant
committed
Dockerfile and docker-compose.yml
1 parent e1ab520 commit f2a797a

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

docker/Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Use the base image with Node.js
2+
FROM node:latest
3+
4+
# Copy the current directory into the Docker image
5+
COPY . /leaderboard-processor
6+
# Set working directory for future use
7+
WORKDIR /leaderboard-processor
8+
9+
# Install the dependencies from package.json
10+
RUN npm install
11+
RUN npm start

docker/docker-compose.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: '3'
2+
services:
3+
leaderboard-processor:
4+
image: leaderboard-processor:latest
5+
build:
6+
context: ../
7+
dockerfile: docker/Dockerfile
8+
network_mode: "host"

0 commit comments

Comments
 (0)