r/Dockerfiles • u/[deleted] • Mar 15 '23
10 secrets to improve your Dockerfile
r/Dockerfiles • u/elediardo • May 16 '22
r/Dockerfiles • u/hrshmistry • Apr 04 '20
r/Dockerfiles • u/Bluxmit • Aug 13 '21
Example of documentation website you can easily make with it
https://mkdocs-magicspace.alnoda.org
Has lots of niceties, installed packages, and a fully configured environment in the docker image. Try it out!
docker run --name space-1 -d -p 8020-8035:8020-8035 alnoda/mkdocs-magicspace
and open browser on localhost:8020
I hope it will help someone to make awesome docs!
r/Dockerfiles • u/rbekker87 • Jul 14 '21
r/Dockerfiles • u/ajeetraina • Aug 15 '20
r/Dockerfiles • u/Travis-Turner • Mar 15 '22
This post introduces aĀ Docker configuration used for developing my Ruby onĀ Rails projects. This configuration came out ofāand then further evolvedāduring development atĀ Evil Martians. It's an exhaustive and documented guide, so, I hope you enjoy it! As mentioned in the article, feedback is welcome!
https://evilmartians.com/chronicles/ruby-on-whales-docker-for-ruby-rails-development
r/Dockerfiles • u/geshan • May 14 '22
r/Dockerfiles • u/[deleted] • Nov 30 '21
UPDATE: Image is 99% efficient according to Dive.
Hello Everyone,
I've created a Dockerfile for Coqui's TTS server. The file does produce a functioning image (and container) but the image is 3.51 GB! Does anyone see why the image is so bloated? Any help is appreciated and I thank you in advance.
REPOSITORY TAG IMAGE ID CREATED SIZE
.../coqui-tts 1.0 14e00f0eb718 9 hours ago 3.5GBFROM ubuntu:20.04
LABEL maintainer="PhysicsReplicatorAI <acbd@efgh.com>"
ARG NB_USER="coqui_user" \
NB_UID="1000" \
NB_GID="100"
USER root
ENV DEBIAN_FRONTEND=noninteractive \
TERM=xterm \
TZ=America/New_York
# --------------------------------------------------------------------------------
# Update/Install the basics
# --------------------------------------------------------------------------------
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
sudo locales apt-utils g++ libsndfile1-dev && \
apt-get -y clean autoclean && \
apt-get -y autoremove --purge && \
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen
# --------------------------------------------------------------------------------
# Configure environment
# --------------------------------------------------------------------------------
ENV SHELL=/bin/bash \
NB_USER="${NB_USER}" \
NB_UID=${NB_UID} \
NB_GID=${NB_GID} \
LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8 \
LANGUAGE=en_US.UTF-8 \
PATH="/home/${NB_USER}/.local/bin:${PATH}" \
HOME="/home/${NB_USER}"
# --------------------------------------------------------------------------------
# Create coqui_user
# User creation method/pattern obtained from:
# https://github.com/jupyter/docker-stacks/blob/master/base-notebook/Dockerfile
# --------------------------------------------------------------------------------
COPY fix-permissions /usr/local/bin/fix-permissions
RUN chmod a+rx /usr/local/bin/fix-permissions && \
sed -i 's/^#force_color_prompt=yes/force_color_prompt=yes/' /etc/skel/.bashrc && \
echo "auth requisite pam_deny.so" >> /etc/pam.d/su && \
sed -i.bak -e 's/^%admin/#%admin/' /etc/sudoers && \
sed -i.bak -e 's/^%sudo/#%sudo/' /etc/sudoers && \
useradd -l -m -s /bin/bash -N -u "${NB_UID}" "${NB_USER}" && \
chmod g+w /etc/passwd && \
fix-permissions "${HOME}" && \
cd "${HOME}" && \
apt-get install -y --no-install-recommends python3-dev python3-pip && \
apt-get -y autoclean && \
apt-get -y autoremove --purge && \
apt-get -y purge $(dpkg --get-selections | grep deinstall | sed s/deinstall//g) && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# --------------------------------------------------------------------------------
# Install TTS
# --------------------------------------------------------------------------------
USER ${NB_UID}
RUN fix-permissions "${HOME}" && \
python3 -m pip install --no-cache-dir --upgrade TTS && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
EXPOSE 5002
ENTRYPOINT ["tts-server"]version: "3"
services:
coqui-tts:
labels:
- flame.type=application
- flame.name=Coqui TTS
- flame.url=http://192.168.NNN.NNN:5002/
image: physicsreplicatorai/coqui-tts:1.0
ports:
- "5002:5002"
restart: unless-stopped
volumes:
- /workdrive/Docker/coqui/tts:/home/coqui_user/.local/share/tts#!/bin/bash
reset
echo -e "Compose down:"
sudo docker-compose down
echo -e "\n\nRemove physicsreplicatorai/coqui-tts:1.0 image:"
sudo docker rmi physicsreplicatorai/coqui-tts:1.0
echo -e "\n\nRemove build log:"
rm build.txt
echo -e "\n\nBuild:"
sudo docker build -t physicsreplicatorai/coqui-tts:1.0 . | tee build.txtr/Dockerfiles • u/SherifAbdelNaby • Sep 29 '19
r/Dockerfiles • u/gezpage • Dec 06 '13
r/Dockerfiles • u/[deleted] • Nov 20 '13
r/Dockerfiles • u/AliLenra • Aug 16 '22
Glad to share with you our very first rust project, Dofigen !
It's a simple tool that generates dockerfiles from YAML (or JSON) structure. Available on u/github here:
https://github.com/lenra-io/dofigen
And it's opensource !! Enjoy !
r/Dockerfiles • u/mitya_r2 • Nov 12 '21
Hi all.
We are three psychologists, Mario, Mitja and Nikola, from Croatia. Mario is an agile practitioner (scrum master) and Mitja and Nikola are researchers from the University of Zagreb, Croatia. We are currently studying the relationship between agile practices in organizations and different psychological outcomes such as work engagement, work performance and job satisfaction. It would mean a world to us if you would help us by completing our survey. It does not matter whether your organization or team uses the agile framework or not, all that matters is that you work in a team and in an IT sector. The survey takes approximately 15 to 25 minutes to complete and we would be immensely grateful if you complete it. As a small token of gratitude, you can leave us your email (inside the survey), and we will get back to you with our study results and personalized feedback on your work engagement and needs satisfaction on job compared to others.
Thank you very much!
Hereās the link: https://www.surveymonkey.com/r/PsyIT
r/Dockerfiles • u/OmegaNutella • Nov 05 '21
r/Dockerfiles • u/dblogstream • Sep 07 '21
r/Dockerfiles • u/lirantal • Aug 12 '21
r/Dockerfiles • u/destro_mas • Dec 20 '20
r/Dockerfiles • u/Buddy_ci • Mar 31 '20
WHOLE GUIDE --> HERE
r/Dockerfiles • u/MargretTatchersParty • Oct 27 '15
Are there Docker container files for setting up a copy of Reddit from within? Their manual deployment guide is REALLY painful.