Skip to content

Commit

Permalink
chore(config): added Dockerfile and docker-compose.yml files
Browse files Browse the repository at this point in the history
  • Loading branch information
MAXOUXAX committed Jan 25, 2024
1 parent 7738362 commit 059a6b9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# syntax=docker/dockerfile:1

FROM node:18-alpine
WORKDIR /
COPY . ./
WORKDIR /backend
RUN npm install
RUN npm run build
CMD ["node", "build/server.js"]
EXPOSE 3000
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: "3.9"
services:
backend:
build: .
ports:
- "127.0.0.1:8182:3000"

0 comments on commit 059a6b9

Please sign in to comment.