Questions tagged [dockerfile]
A Dockerfile is a file containing instructions to build a Docker image
22
questions
3
votes
2
answers
574
views
Install specific version of Python in docker
Downloading specific version like 3.11.1 from https://www.python.org/ftp/python/3.11.1/Python-3.11.1.tgz and installing ...
7
votes
1
answer
808
views
Nginx Docker image with built from source with modules
I needed Nginx Docker image with additional modules (Lua and headers more) and Lua Prometheus lib. I did not want to use Openresty for that because its Alpine docker image weighs ~110MB, when Nginx ...
3
votes
1
answer
81
views
Docker project that deploys a RESTful API with Flask and MySQL
What's up? this is a small project to teach myself Docker.
This Docker setup works, healthchecks pass for both app and mysql, app is initialized and is listening as expected, what I'm looking is a ...
1
vote
1
answer
29
views
Multistage Dockerfile to build a C project and copy things over to second stage
I wrote this Dockerfile (multi-stage) where the first stage builds the project and in the second stage we just copy the stuff over. I am wondering can I please get some feedback? more specifically the ...
1
vote
1
answer
316
views
Dockerfile of Vim + Plugins and .vimrc
What follows is a Dockerfile for my Vim settings, so I could use it anywhere.
While it is public, it is not intended for mass usage, and so the face that it creates the password in the build process ...
6
votes
1
answer
1k
views
Implementation of Gitlab CI + Docker + Spring Boot
i would really appreciate if anyone could invest a bit of time to review what i did. Basically this is first time i do this, and that is reason why i need another set of eyes.
I have Spring Boot ...
2
votes
2
answers
129
views
First Dockerfile, I would appreciate critique
As the title says, this is my first Dockerfile. It won't be published on any registry, just for my internal use at home. I'd appreciate any critique of what I could do better. I'm currently working on ...
5
votes
0
answers
782
views
Docker-compose for task-based Flask API with Redis and rq
I am not a Docker guru or expert in Flask or Redis. However, I need to leverage these technologies. I managed to cobble something together that works and would like to submit it for review.
The MWE ...
3
votes
1
answer
687
views
Reviewing the Dockerfile and docker-compose.yml files for a basic nodejs mysql project
I'm new to docker and after much research and stufy I've created a sample application and would like it to be reviewed in case if I'm missing any corner or if there's redundant information that can be ...
3
votes
1
answer
105
views
Dockerfile to generate a unit test image AND a production image
I use a single dockerfile to build and run the following images:
Production application image:
...
1
vote
1
answer
99
views
Dockerfile for C project
This is a Dockerfile which aims to create a complete environment for the bismon project. I have written it as an exercise and to make it easy for other users to begin with bismon.
...
2
votes
1
answer
59
views
Dockerfile + CI for C build
I recently built a CI for my course project in C. I made 3 stages, to build docker image, compile my C sources and run the said project.
That said, i think i could've do way better here but i don't ...
0
votes
1
answer
102
views
Reduced Docker Image size for Docker file
I am trying to reduce my Docker image size.
The folder that I am trying to dockerize is 628K in size. Checked using:
...
1
vote
2
answers
198
views
Shell script to build executable from node.js
I'm trying ompile archive node.js executable into one executable using node-packer.
For my all packages, executables of node.js ...
4
votes
1
answer
2k
views
Dockerfile to install Python and React in Linux container
I am learning how to use Docker. I'm creating a container that contains Python and React. This code works, but it seems so heavy when I install it. I only want React, but to get React, I install Node ...
1
vote
1
answer
66
views
Combining ADD and VOLUME on a nodejs Dockerfile
I have a node project. My scripts section of package.json looks like this:
...
1
vote
2
answers
178
views
Dockerfile for Laravel deployment
I'm looking for reviews about my first dockfile. I don't want to develop bad habits.
The purpose is to quickly deploy my Laravel (5.4) application. I'm going to connect it with others database ...
2
votes
1
answer
132
views
Docker script to set up a Python development environment with some Git projects
I've create a Docker script momodock.script that does some installation for a set of tools that I'll need to install on multiple machines:
...
8
votes
2
answers
714
views
Laravel Docker-Compose
I've created a repo for some Docker containers that work together with docker-compose to make a very easy and quick installation for Laravel including nginx, mariadb, and redis. Laravel is known for ...
4
votes
2
answers
8k
views
Shell script wrapper for Docker build and run
I have written a simple wrapper for docker build and docker run that allows me to build and run my image without having to use ...
8
votes
1
answer
1k
views
A Dockerfile for Composer (a dependency manager for PHP)
I recently built a Docker image for Composer. I'd love to get a review of the image, the Bash based wrapper script, its recommended use, and the repository structure.
Here's the Dockerfile for the <...
4
votes
3
answers
688
views
Dockerfile to install Apache
I'm getting started with Docker, and I've set up a very simple image built from a Dockerfile. It's based FROM the ubuntu image, ...