Skip to content

Commit 2e1c0d5

Browse files
committed
chore: add docker files
1 parent 8dd23ea commit 2e1c0d5

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.git

Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM node:24-alpine
2+
3+
RUN apk add --no-cache git
4+
5+
WORKDIR /app
6+
7+
COPY package.json .
8+
9+
RUN npm install
10+
11+
COPY . .
12+
13+
EXPOSE 3000
14+
15+
CMD ["npm", "run", "dev"]

docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: php-revival-landing
2+
3+
services:
4+
app:
5+
image: php-revival-landing
6+
container_name: php-revival-landing
7+
build:
8+
context: .
9+
volumes:
10+
- .:/app
11+
- /app/node_modules
12+
ports:
13+
- 3000:3000

0 commit comments

Comments
 (0)