mirror of
https://github.com/luzifer-docker/codimd.git
synced 2024-11-08 06:10:08 +00:00
Change paths to codimd
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
56867e6eed
commit
f8bd5cc333
2 changed files with 8 additions and 8 deletions
14
Dockerfile
14
Dockerfile
|
@ -12,9 +12,9 @@ RUN set -ex \
|
||||||
make \
|
make \
|
||||||
python \
|
python \
|
||||||
tar \
|
tar \
|
||||||
&& mkdir /hackmd \
|
&& mkdir /codimd \
|
||||||
&& curl -sSfL https://github.com/hackmdio/codimd/archive/${CODIMD_VERSION}.tar.gz | tar -xzf - --strip-components=1 -C /hackmd \
|
&& curl -sSfL https://github.com/hackmdio/codimd/archive/${CODIMD_VERSION}.tar.gz | tar -xzf - --strip-components=1 -C /codimd \
|
||||||
&& cd /hackmd \
|
&& cd /codimd \
|
||||||
&& npm install --loglevel warn \
|
&& npm install --loglevel warn \
|
||||||
grunt \
|
grunt \
|
||||||
webpack \
|
webpack \
|
||||||
|
@ -76,16 +76,16 @@ LABEL codimd_version=1.2.1
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& apk add --no-cache bash
|
&& apk add --no-cache bash
|
||||||
|
|
||||||
COPY --from=builder /hackmd /hackmd
|
COPY --from=builder /codimd /codimd
|
||||||
|
|
||||||
ADD run.sh /usr/local/bin/run.sh
|
ADD run.sh /usr/local/bin/run.sh
|
||||||
ADD config.json /hackmd/config.json.default
|
ADD config.json /codimd/config.json.default
|
||||||
ADD sequelizerc /hackmd/.sequelizerc.default
|
ADD sequelizerc /codimd/.sequelizerc.default
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
VOLUME /config
|
VOLUME /config
|
||||||
VOLUME /data
|
VOLUME /data
|
||||||
VOLUME /hackmd/public/uploads
|
VOLUME /codimd/public/uploads
|
||||||
|
|
||||||
ENV NODE_ENV production
|
ENV NODE_ENV production
|
||||||
|
|
||||||
|
|
2
run.sh
2
run.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|
||||||
cd /hackmd
|
cd /codimd
|
||||||
|
|
||||||
if ! [ -f /config/config.json ]; then
|
if ! [ -f /config/config.json ]; then
|
||||||
cp config.json.default config.json
|
cp config.json.default config.json
|
||||||
|
|
Loading…
Reference in a new issue