Switch to new repo, update to 1.4.0, node 10

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2019-06-30 12:40:36 +02:00
parent 964c1c7043
commit 97fa3b69fb
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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 ARG BUILD_ASSETS=false
RUN set -ex \ RUN set -ex \
@ -13,19 +13,20 @@ RUN set -ex \
python \ python \
tar \ tar \
&& mkdir /codimd \ && 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 \ && cd /codimd \
&& npm install --loglevel warn \ && npx npm@lts install --loglevel warn \
grunt \ grunt \
webpack \ webpack \
webpack-cli \ webpack-cli \
&& npm install --loglevel warn \ && npx npm@lts install --loglevel warn \
&& npm run build \ && npx npm@lts run build \
&& rm -rf node_modules \ && 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 LABEL codimd_version=1.2.1
@ -74,7 +75,9 @@ LABEL codimd_version=1.2.1
# ENV HMD_S3_BUCKET "" # ENV HMD_S3_BUCKET ""
RUN set -ex \ RUN set -ex \
&& apk add --no-cache bash && apk add --no-cache \
bash \
sqlite
COPY --from=builder /codimd /codimd COPY --from=builder /codimd /codimd