Skip to content

Commit

Permalink
chore: dockerize (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshd332 authored Dec 10, 2023
1 parent d86959c commit 51d85e4
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
build/
dist/
.next
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:20-alpine

WORKDIR /app


COPY package.json ./
COPY yarn.lock ./

RUN yarn install

COPY ./ ./

RUN yarn build

CMD yarn start
16 changes: 16 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3.3'
services:
app:
build:
context: .
dockerfile: Dockerfile
container_name: pragyan-23-app
restart: always
ports:
- '3072:3000'
networks:
- pragyan-2024_network

networks:
pragyan-2024_network:
external: true

0 comments on commit 51d85e4

Please sign in to comment.