mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 22:15:14 +00:00
* Inertia p1? * Inertia'fied signed out homepage? * Split up signed in page * WIP signed in v2? * Better signed in? * Clean up extensions page! * Fix currently hacking * Better docs page? * Docs update 2 * Clean up "What is Hackatime?" + get rid of that godawful green dev mode * Better nav? * Cleaner settings? * Fix commit times * Fix flashes + OS improv * Setup v2 * Readd some of the syncers? * Remove stray emdash * Clean up Step 3 * Oops, remove .vite * bye bye, /inertia-example * bin/rubocop -A * Fix docs vuln
46 lines
No EOL
1.1 KiB
Text
46 lines
No EOL
1.1 KiB
Text
FROM ruby:3.4.8
|
|
|
|
# Install system dependencies including Node.js
|
|
RUN apt-get update -qq && \
|
|
apt-get install --no-install-recommends -y \
|
|
build-essential \
|
|
git \
|
|
libpq-dev \
|
|
libyaml-dev \
|
|
postgresql-client \
|
|
libvips \
|
|
pkg-config \
|
|
curl \
|
|
vim \
|
|
nodejs \
|
|
npm \
|
|
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/archives
|
|
|
|
# Install Bun
|
|
RUN curl -fsSL https://bun.sh/install | bash && \
|
|
mv ~/.bun/bin/bun /usr/local/bin/
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Install npm dependencies for Vite
|
|
COPY package.json bun.lock ./
|
|
RUN bun install
|
|
|
|
# Install application dependencies
|
|
COPY Gemfile Gemfile.lock ./
|
|
RUN bundle install
|
|
|
|
# Add a script to be executed every time the container starts
|
|
COPY entrypoint.dev.sh /usr/bin/
|
|
RUN chmod +x /usr/bin/entrypoint.dev.sh
|
|
ENTRYPOINT ["entrypoint.dev.sh"]
|
|
|
|
# Global git safeguards
|
|
RUN git config --system http.timeout 30 && \
|
|
git config --system http.lowSpeedLimit 1000 && \
|
|
git config --system http.lowSpeedTime 10
|
|
EXPOSE 3000
|
|
|
|
# Start the main process
|
|
CMD ["rails", "server", "-b", "0.0.0.0"] |