Skip to content

Commit

Permalink
CI: Add Docker support (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bufferoverflovv authored Dec 10, 2024
1 parent 46237de commit 693df3a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM node:18-alpine

RUN apk add --no-cache bash git openssh

WORKDIR /app

COPY package*.json yarn.lock ./

RUN yarn install

COPY . .

WORKDIR /app/app # Correct working directory for the Nuxt build

RUN yarn build

EXPOSE 3000

CMD ["yarn", "preview"]
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ yarn dev
yarn build && yarn preview
```

### Docker build
```bash
docker build -t meiliweb .
```

### Docker run
```bash
docker run -p 3000:3000 -d meiliweb
```

### Code style

#### Check
Expand Down

0 comments on commit 693df3a

Please sign in to comment.