forked from rancher/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
27 lines (21 loc) · 748 Bytes
/
Dockerfile.dev
File metadata and controls
27 lines (21 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM rancher/docs:build
VOLUME ["/site"]
WORKDIR /run
COPY package.json /run/
RUN ln -s /site/config.toml /run \
&& ln -s /site/.eslintrc.js /run \
&& ln -s /site/netlify.toml /run \
&& ln -s /site/archetypes /run \
&& ln -s /site/content /run \
&& ln -s /site/data /run \
&& ln -s /site/layouts /run \
&& ln -s /site/src /run \
&& ln -s /site/themes /run \
&& ln -s /site/scripts /run
COPY gulpfile.babel.js /run/
ADD https://github.com/rancherlabs/website-theme/archive/master.tar.gz master.tar.gz
RUN mkdir -p /run/node_modules/rancher-website-theme && tar -xzf master.tar.gz --strip 1 -C /run/node_modules/rancher-website-theme && rm master.tar.gz
# Expose default hugo port
EXPOSE 9001
ENTRYPOINT ["gulp"]
CMD ["dev"]