Skip to content

Commit

Permalink
Updated the docker docs (#884)
Browse files Browse the repository at this point in the history
* updated the docker docs to account for the fact that ubuntu might not have curl installed sometimes
* removed the sudo command since it will raise a conflict in docker
* Combined curl installation commands
* Combined curl installation commands
  • Loading branch information
michaelessiet committed Dec 15, 2023
1 parent 7a488fd commit 9bd20fa
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/run/anywhere/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ options:

```Dockerfile
FROM ubuntu

# Install curl in case it isn't already
RUN apt update && apt upgrade && apt install curl

RUN eval "$(curl https://pkgx.sh)" && dev && npm start
```

Expand All @@ -61,7 +65,12 @@ use a more advanced shell like bash:

```Dockerfile
FROM ubuntu

SHELL ["/bin/bash", "-c"]

# Install curl in case it isn't already
RUN apt update && apt upgrade && apt install curl

RUN curl https://pkgx.sh | sh
RUN pkgx integrate
RUN dev && npm start # you still have to run `dev && ` tho
Expand Down

0 comments on commit 9bd20fa

Please sign in to comment.