Skip to content

Commit

Permalink
fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kaishuu0123 committed Jul 21, 2024
1 parent 59f2eaf commit 84bf6c9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
FROM mcr.microsoft.com/devcontainers/base:ubuntu

ENV BUNDLER_VERSION 2.5.7

RUN apt -y update && apt -y upgrade && apt -y install libpq-dev

RUN gem install bundler --version ${BUNDLER_VERSION}
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# refs: https://github.com/tootsuite/mastodon
# refs: https://qiita.com/baban/items/99877f9b3065c4cf3d50

FROM node:8.9.4-alpine as node
FROM node:16.20.2-alpine as node

FROM ruby:2.5.3-alpine as builder
FROM ruby:3.3.1-alpine as builder

ENV BUNDLER_VERSION 2.5.7

RUN apk --update --no-cache add bash bash-completion

Expand All @@ -24,7 +26,7 @@ COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules
RUN ln -s /usr/local/bin/node /usr/local/bin/nodejs && \
ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm

RUN gem install bundler --version 1.17.3 && \
RUN gem install bundler --version ${BUNDLER_VERSION} && \
bundle install --without development test --path vendor/bundle && \
find vendor/bundle/ruby -path '*/gems/*/ext/*/Makefile' -exec dirname {} \; | xargs -n1 -P$(nproc) -I{} make -C {} clean

Expand Down

0 comments on commit 84bf6c9

Please sign in to comment.