Skip to content
Snippets Groups Projects
Unverified Commit 65d9c304 authored by Jun Kurihara's avatar Jun Kurihara Committed by GitHub
Browse files

fix Dockerfile (#7763)

* fix Dockerfile

* remove unnecessary change

* add misskey-assets in .dockerignore
parent bf7bacce
No related branches found
No related tags found
No related merge requests found
.autogen
.git
.github
.travis
.vscode
......@@ -12,3 +11,4 @@ elasticsearch/
node_modules/
redis/
files/
misskey-assets/
......@@ -4,27 +4,17 @@ ENV NODE_ENV=production
WORKDIR /misskey
ENV BUILD_DEPS autoconf automake file g++ gcc libc-dev libtool make nasm pkgconfig python3 zlib-dev git
FROM base AS builder
RUN apk add --no-cache \
autoconf \
automake \
file \
g++ \
gcc \
libc-dev \
libtool \
make \
nasm \
pkgconfig \
python3 \
zlib-dev
RUN git submodule update --init
COPY package.json yarn.lock .yarnrc ./
RUN yarn install
COPY . ./
RUN yarn build
RUN apk add --no-cache $BUILD_DEPS && \
git submodule update --init && \
yarn install && \
yarn build && \
rm -rf .git
FROM base AS runner
......@@ -39,3 +29,4 @@ COPY --from=builder /misskey/built ./built
COPY . ./
CMD ["npm", "run", "migrateandstart"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment