diff options
| author | Jun Kurihara <junkurihara@users.noreply.github.com> | 2021-09-05 02:18:12 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-05 02:18:12 +0900 |
| commit | 65d9c304df06c46ed5e8bfd3d8bc53a84571684c (patch) | |
| tree | 06b604d66a5c7bce5c00aaa9f42725fb3b537bde /Dockerfile | |
| parent | 12.90.0 (diff) | |
| download | misskey-65d9c304df06c46ed5e8bfd3d8bc53a84571684c.tar.gz misskey-65d9c304df06c46ed5e8bfd3d8bc53a84571684c.tar.bz2 misskey-65d9c304df06c46ed5e8bfd3d8bc53a84571684c.zip | |
fix Dockerfile (#7763)
* fix Dockerfile
* remove unnecessary change
* add misskey-assets in .dockerignore
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/Dockerfile b/Dockerfile index 8c655c4c4f..58e3eda119 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,27 +4,17 @@ ENV NODE_ENV=production WORKDIR /misskey -FROM base AS builder +ENV BUILD_DEPS autoconf automake file g++ gcc libc-dev libtool make nasm pkgconfig python3 zlib-dev git -RUN apk add --no-cache \ - autoconf \ - automake \ - file \ - g++ \ - gcc \ - libc-dev \ - libtool \ - make \ - nasm \ - pkgconfig \ - python3 \ - zlib-dev +FROM base AS builder -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"] + |