Files
manyfold/docker/build.dockerfile
T
2024-12-10 12:07:51 +00:00

29 lines
529 B
Docker

## BUILD STAGE ##########################################
FROM base AS build
RUN apk add --no-cache \
alpine-sdk \
nodejs=~22.11 \
npm \
postgresql-dev \
mariadb-dev \
libarchive
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