|
You are here |
github.com | ||
| | | | |
willschenk.com
|
|
| | | | | I was building a sinatra app and needed to throw in some python binaries. Here's a Dockerfile that handles both Gemfile and requirements.txt. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 ARG RUBY_VERSION=3.3.4 FROM ruby:$RUBY_VERSION-slim as base RUN apt-get update -qq && \ apt-get install -no-install-recommends -y build-essential curl sqlite3 RUN apt-get install -y python3 python3-pip python3.11-venv RUN gem update -system -no-document && \ bundle config set -local without development # Rack app lives here WORKDIR /app ENV VIRTUAL_ENV=/opt/venv RUN python3 -m venv $VIRTUAL_ENV ENV PATH="$VIRTUAL_ENV/bin:$PATH" COPY requirements.txt . RUN /opt/venv/bin/pip install -r requirements.txt # Install appli... | |
| | | | |
suranyami.com
|
|
| | | | | Some instructions for getting a dev environment on Raspberry Pi: Create development directory mkdir -p development/work mkdir -p develo... | |
| | | | |
flameeyes.blog
|
|
| | | | | Last year, I set up an AppEngine app to redirect the old blog's URLs to the WordPress install. It's a relatively simple Flask web application, although it turned out to be around 700 lines of code (quite a bit to just serve redirects). While it ran fine for over a year on Google Cloud without... | |
| | | | |
flixwise.com
|
|
| | | |||