Commit 2614d5cf authored by nanahira's avatar nanahira

bump deps and move to root

parent 72f21136
Pipeline #20163 passed with stages
in 10 minutes and 17 seconds
......@@ -4,10 +4,8 @@ LABEL Author="Nanahira <nanahira@momobako.com>"
RUN apt update && \
apt -y install python3 build-essential git chromium libnss3 libfreetype6-dev libharfbuzz-bin libharfbuzz-dev ca-certificates fonts-freefont-otf fonts-freefont-ttf fonts-noto-cjk fonts-wqy-microhei fonts-wqy-zenhei libpq-dev && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /var/log/*
RUN useradd -d /app -m -s /bin/bash mycard
USER mycard
WORKDIR /app
COPY --chown=mycard:mycard ./package*.json ./
COPY ./package*.json ./
FROM base as builder
RUN npm ci && npm cache clean --force
......@@ -19,8 +17,8 @@ ENV NODE_ENV production
RUN npm ci && npm cache clean --force
COPY --from=builder /app/dist ./dist
COPY --chown=mycard:mycard ./config.example.yaml ./config.yaml
COPY --chown=mycard:mycard ./views ./views
COPY ./config.example.yaml ./config.yaml
COPY ./views ./views
ENV NODE_PG_FORCE_NATIVE=true
EXPOSE 3000
......
This diff is collapsed.
请点击下面的链接完成 MyCard 帐号绑定。
{{url}}
请点击 <a href="{{url}}">这里</a> 完成 MyCard 帐号绑定。
{{#needHint}}日后可以通过指令 bind 绑定或换绑 MyCard 帐号,通过指令 unbind 解绑 MyCard 帐号。{{/needHint}}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment