mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-21 11:12:27 -05:00
31 lines
550 B
Docker
31 lines
550 B
Docker
## BUILD STAGE ##########################################
|
|
|
|
FROM base AS build
|
|
|
|
RUN apk add --no-cache \
|
|
alpine-sdk \
|
|
nodejs=~20.15 \
|
|
npm \
|
|
postgresql-dev \
|
|
mariadb-dev \
|
|
libarchive \
|
|
mesa-gl \
|
|
glfw
|
|
|
|
COPY package.json .
|
|
COPY yarn.lock .
|
|
RUN npm install --global corepack
|
|
RUN corepack enable yarn
|
|
RUN yarn install
|
|
|
|
COPY .ruby-version .
|
|
COPY Gemfile* ./
|
|
RUN bundle install
|
|
|
|
COPY . .
|
|
RUN \
|
|
DATABASE_URL="nulldb://user:pass@localhost/db" \
|
|
SECRET_KEY_BASE="placeholder" \
|
|
RACK_ENV="production" \
|
|
bundle exec rake assets:precompile
|