Files
akkounts/Dockerfile

30 lines
971 B
Docker
Raw Normal View History

2022-12-02 19:19:02 +01:00
# syntax=docker/dockerfile:1
FROM debian:bullseye-slim as base
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# TODO Remove when upstream Ruby works properly on Apple silicon
2024-02-22 11:29:56 +01:00
RUN apt update && apt install -y build-essential wget autoconf libpq-dev pkg-config
RUN wget https://github.com/postmodern/ruby-install/releases/download/v0.9.3/ruby-install-0.9.3.tar.gz \
&& tar -xzvf ruby-install-0.9.3.tar.gz \
&& cd ruby-install-0.9.3/ \
&& make install
RUN ruby-install -p https://github.com/ruby/ruby/pull/9371.diff ruby 3.3.0
ENV PATH="/opt/rubies/ruby-3.3.0/bin:${PATH}"
RUN apt-get install -y --no-install-recommends curl ldap-utils tini libvips
2022-12-02 19:19:02 +01:00
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
RUN apt-get update && apt-get install -y nodejs
2022-12-02 19:19:02 +01:00
WORKDIR /akkounts
2023-06-23 17:21:17 +02:00
COPY ["Gemfile", "Gemfile.lock", "package.json", "./"]
2022-12-02 19:19:02 +01:00
RUN bundle install
2022-12-21 17:25:02 +07:00
RUN gem install foreman
2022-12-02 19:19:02 +01:00
RUN npm install -g yarn
RUN yarn install
ENTRYPOINT ["/usr/bin/tini", "--"]
2022-12-02 19:19:02 +01:00
EXPOSE 3000