Skip to content

Commit c630ce6

Browse files
author
Michel Wächter
committed
added docker support
Signed-off-by: Michel Wächter <michel.waechter@imflow.me>
1 parent 76a85bb commit c630ce6

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.dockerignore

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

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM node:16-alpine3.14
2+
3+
WORKDIR app
4+
5+
COPY package.json .
6+
7+
RUN yarn install
8+
9+
COPY . .
10+
11+
EXPOSE 3000
12+
CMD ["yarn", "run", "dev"]

docker-compose.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: "3.0"
2+
3+
services:
4+
node:
5+
build:
6+
context: .
7+
dockerfile: Dockerfile
8+
ports:
9+
- "3005:3000"
10+
volumes:
11+
- ./:/app

0 commit comments

Comments
 (0)