mirror of
https://gitee.com/mafgwo/stackedit
synced 2024-11-16 03:32:40 +08:00
Added v4 in Dockerfile
This commit is contained in:
parent
19f8c69527
commit
dfb0d0c382
25
Dockerfile
25
Dockerfile
|
@ -1,13 +1,24 @@
|
|||
FROM benweet/stackedit-base
|
||||
|
||||
RUN mkdir -p /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
RUN mkdir -p /opt/stackedit/stackedit_v4
|
||||
WORKDIR /opt/stackedit/stackedit_v4
|
||||
|
||||
COPY package.json /usr/src/app/
|
||||
COPY yarn.lock /usr/src/app/
|
||||
COPY gulpfile.js /usr/src/app/
|
||||
RUN yarn && yarn cache clean
|
||||
COPY . /usr/src/app
|
||||
ENV SERVE_V4 true
|
||||
ENV V4_VERSION 4.3.21
|
||||
RUN npm pack stackedit@$V4_VERSION \
|
||||
&& tar xzf stackedit-*.tgz --strip 1 \
|
||||
&& yarn \
|
||||
&& yarn cache clean
|
||||
|
||||
WORKDIR /opt/stackedit
|
||||
|
||||
COPY package.json /opt/stackedit/
|
||||
COPY yarn.lock /opt/stackedit/
|
||||
COPY gulpfile.js /opt/stackedit/
|
||||
RUN npm install
|
||||
&& npm cache clean --force
|
||||
&& npm run build
|
||||
COPY . /opt/stackedit
|
||||
ENV NODE_ENV production
|
||||
RUN yarn run build
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user