/explore
|
You are here |
javier.io | ||
| | | | |
blog.fredrb.com
Tiny Python Docker Images I was looking for a way to create a very small docker image for a Python project. The python project I created is a Telegram bot quizzes me in German. The python-telegram-bot pip package requires gcc to fully build- so using alpine image did not do the trick for me. I searched online, found a few example bot none that would actually do what I needed with a reasonable image size. |
|
| | | | | ||
| | | | |
andyfreeland.net
[AI summary] A technical guide demonstrating how to reduce Docker image sizes for Python applications by using Docker BuildKit's bind mount feature instead of copying layers in multi-stage builds. |
|
| | | | | ||
| | | | |
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... |
|
| | | | | ||
| | | | |
nodogmablog.bryanhogan.net
In my previous post I showed how to build a .NET 5 library inside a docker image and deploy it to an AWS Lambda. This post is a small extension on that. I'm going to build a .NET 5 Web API application, turn it into a docker image, deploy it to an AWS Lambda, and connect an API Gateway to the Lambda to call the controller inside the application, inside the container, inside the Lambda! |
|
| | | |||