mirror of
https://github.com/luzifer-docker/codimd.git
synced 2024-11-08 14:20:11 +00:00
Switch to new repo, update to 1.4.0, node 10
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
964c1c7043
commit
97fa3b69fb
1 changed files with 12 additions and 9 deletions
21
Dockerfile
21
Dockerfile
|
@ -1,6 +1,6 @@
|
|||
FROM node:7-alpine as builder
|
||||
FROM node:10-alpine as builder
|
||||
|
||||
ARG CODIMD_VERSION=1.2.1
|
||||
ARG CODIMD_VERSION=1.4.0
|
||||
ARG BUILD_ASSETS=false
|
||||
|
||||
RUN set -ex \
|
||||
|
@ -13,19 +13,20 @@ RUN set -ex \
|
|||
python \
|
||||
tar \
|
||||
&& mkdir /codimd \
|
||||
&& curl -sSfL https://github.com/hackmdio/codimd/archive/${CODIMD_VERSION}.tar.gz | tar -xzf - --strip-components=1 -C /codimd \
|
||||
&& curl -sSfL https://github.com/codimd/server/archive/${CODIMD_VERSION}.tar.gz | tar -xzf - --strip-components=1 -C /codimd \
|
||||
&& cd /codimd \
|
||||
&& npm install --loglevel warn \
|
||||
&& npx npm@lts install --loglevel warn \
|
||||
grunt \
|
||||
webpack \
|
||||
webpack-cli \
|
||||
&& npm install --loglevel warn \
|
||||
&& npm run build \
|
||||
&& npx npm@lts install --loglevel warn \
|
||||
&& npx npm@lts run build \
|
||||
&& rm -rf node_modules \
|
||||
&& NODE_ENV=production npm install --loglevel warn
|
||||
&& NODE_ENV=production npx npm@lts install --loglevel warn \
|
||||
&& npx npm@lts install sqlite3
|
||||
|
||||
|
||||
FROM node:7-alpine
|
||||
FROM node:10-alpine
|
||||
|
||||
LABEL codimd_version=1.2.1
|
||||
|
||||
|
@ -74,7 +75,9 @@ LABEL codimd_version=1.2.1
|
|||
# ENV HMD_S3_BUCKET ""
|
||||
|
||||
RUN set -ex \
|
||||
&& apk add --no-cache bash
|
||||
&& apk add --no-cache \
|
||||
bash \
|
||||
sqlite
|
||||
|
||||
COPY --from=builder /codimd /codimd
|
||||
|
||||
|
|
Loading…
Reference in a new issue