Skip to content

Commit

Permalink
added docker support
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Wächter <michel.waechter@imflow.me>
  • Loading branch information
Michel Wächter committed Dec 27, 2021
1 parent 76a85bb commit c630ce6
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.nuxt
.output
node_modules
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:16-alpine3.14

WORKDIR app

COPY package.json .

RUN yarn install

COPY . .

EXPOSE 3000
CMD ["yarn", "run", "dev"]
11 changes: 11 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: "3.0"

services:
node:
build:
context: .
dockerfile: Dockerfile
ports:
- "3005:3000"
volumes:
- ./:/app

0 comments on commit c630ce6

Please sign in to comment.