File tree Expand file tree Collapse file tree 2 files changed +5
-22
lines changed Expand file tree Collapse file tree 2 files changed +5
-22
lines changed Original file line number Diff line number Diff line change @@ -60,10 +60,7 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
60
60
git \
61
61
libmagic1 \
62
62
docker.io \
63
- ca-certificates \
64
- build-essential \
65
- gcc \
66
- pkg-config
63
+ ca-certificates
67
64
68
65
RUN mkdir -p /opt/docsrs/prefix
69
66
@@ -74,4 +71,4 @@ COPY docker-entrypoint.sh /opt/docsrs/entrypoint.sh
74
71
75
72
WORKDIR /opt/docsrs
76
73
ENTRYPOINT ["/opt/docsrs/entrypoint.sh" ]
77
- CMD ["start-web-server " ]
74
+ CMD ["daemon" , "--foreground " ]
Original file line number Diff line number Diff line change @@ -49,9 +49,8 @@ Example badges for `mio` crate:
49
49
50
50
## Development
51
51
52
- We strongly recommend using [ docker-compose] ( https://docs.docker.com/compose/ ) ,
53
- which will make it easier to get started without adding new users and packages
54
- to your host machine.
52
+ We strongly recommend using docker-compose, which will make it easier to get started
53
+ without adding new users and packages to your host machine.
55
54
56
55
### Getting started
57
56
@@ -61,20 +60,7 @@ Make sure you have docker-compose and are able to download ~10GB data on the fir
61
60
git clone https://github.com/rust-lang/docs.rs.git docs.rs
62
61
cd docs.rs
63
62
cp .env.sample .env
64
-
65
- docker-compose build # This builds the docs.rs binary
66
-
67
- # Build a sample crate to make sure it works
68
- # This sets up the docs.rs build environment, including installing the nightly
69
- # Rust toolchain. This will take a while the first time but will be cached afterwards.
70
- docker-compose run web build crate regex 1.3.1
71
-
72
- # This starts the web server but does not build any crates.
73
- # If you want to build crates, see below under `build` subcommand
74
- docker-compose up
75
-
76
- # As soon as you see `cratesfyi "$@"`
77
- # you should be able to navigate to http://localhost:3000
63
+ docker-compose up # This may take a half hour or more on the first run
78
64
```
79
65
80
66
If you need to store big files in the repository's directory it's recommended to
You can’t perform that action at this time.
0 commit comments