Skip to content

Commit

Permalink
🔧 Update Docker configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
joao-m-santos committed Jan 30, 2024
1 parent 6e53fdd commit 69a0037
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 29 deletions.
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
ARG docker_image
FROM ${docker_image}
ARG DOCKER_IMAGE
FROM $DOCKER_IMAGE

RUN mkdir lume
WORKDIR /home/node/lume

EXPOSE 9002 9003

RUN curl -o ~/.npm.certs.pem https://curl.se/ca/cacert.pem
RUN npm config set registry https://registry.npmjs.org
RUN npm config set cafile ~/.npm.certs.pem

RUN npm i -g pnpm

ENV PATH="${PATH}:/root/local/bin"
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,19 +191,11 @@ To run the app inside a Docker container:
```
2. Start your container:
```shell
$ docker compose up -d
$ docker build --build-arg DOCKER_IMAGE=$(cat .env | grep DOCKER_IMAGE | cut -d '=' -f2) -t lume .
```
3. Attach to it in your terminal:
```shell
$ docker attach lume
```
4. Install `pnpm`:
```shell
$ npm i -g pnpm
```
5. (Optional, depends on your Docker image) Add the npm global directory to the `PATH` variable:
```shell
$ export PATH="${PATH}:/root/local/bin"
$ docker run -it -v ./:/home/node/lume -p 9002:9002 -p 9003:9003 lume
```

### About Vue versions
Expand Down
16 changes: 0 additions & 16 deletions docker-compose.yml

This file was deleted.

0 comments on commit 69a0037

Please # to comment.