fix: arm64 dockerfile
This commit is contained in:
parent
5ad265cc99
commit
5075f16731
@ -1,7 +1,7 @@
|
|||||||
# =========================
|
# =========================
|
||||||
# --- BUILD NPM MODULES ---
|
# --- BUILD NPM MODULES ---
|
||||||
# =========================
|
# =========================
|
||||||
FROM node:12.13-alpine AS build
|
FROM node:12-alpine AS build
|
||||||
|
|
||||||
RUN apk add yarn g++ make python --no-cache
|
RUN apk add yarn g++ make python --no-cache
|
||||||
|
|
||||||
@ -14,12 +14,13 @@ RUN yarn --production --frozen-lockfile --non-interactive --network-timeout 1000
|
|||||||
# ===============
|
# ===============
|
||||||
# --- Release ---
|
# --- Release ---
|
||||||
# ===============
|
# ===============
|
||||||
FROM node:12.13-alpine
|
FROM node:12-alpine
|
||||||
LABEL maintainer="requarks.io"
|
LABEL maintainer="requarks.io"
|
||||||
|
|
||||||
RUN apk add bash curl git openssh gnupg sqlite --no-cache && \
|
RUN apk add bash curl git openssh gnupg sqlite --no-cache && \
|
||||||
mkdir -p /wiki && \
|
mkdir -p /wiki && \
|
||||||
mkdir -p /logs && \
|
mkdir -p /logs && \
|
||||||
|
mkdir -p /wiki/data/content && \
|
||||||
chown -R node:node /wiki /logs
|
chown -R node:node /wiki /logs
|
||||||
|
|
||||||
WORKDIR /wiki
|
WORKDIR /wiki
|
||||||
@ -29,12 +30,14 @@ COPY --chown=node:node --from=build /wiki/node_modules ./node_modules
|
|||||||
COPY --chown=node:node ./server ./server
|
COPY --chown=node:node ./server ./server
|
||||||
COPY --chown=node:node ./build/server/views ./server/views
|
COPY --chown=node:node ./build/server/views ./server/views
|
||||||
COPY --chown=node:node ./dev/build/config.yml ./config.yml
|
COPY --chown=node:node ./dev/build/config.yml ./config.yml
|
||||||
COPY --chown=node:node ./dev/docker-common/wait.sh ./wait.sh
|
|
||||||
COPY --chown=node:node ./package.json ./package.json
|
COPY --chown=node:node ./package.json ./package.json
|
||||||
COPY --chown=node:node ./LICENSE ./LICENSE
|
COPY --chown=node:node ./LICENSE ./LICENSE
|
||||||
|
|
||||||
USER node
|
USER node
|
||||||
|
|
||||||
|
VOLUME ["/wiki/data/content"]
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
EXPOSE 3443
|
||||||
|
|
||||||
CMD ["node", "server"]
|
CMD ["node", "server"]
|
||||||
|
Loading…
Reference in New Issue
Block a user