https://github.com/malcodeman/docker-recipes
🐳 Docker snippets.
https://github.com/malcodeman/docker-recipes
docker snippets
Last synced: 3 months ago
JSON representation
🐳 Docker snippets.
- Host: GitHub
- URL: https://github.com/malcodeman/docker-recipes
- Owner: malcodeman
- License: mit
- Created: 2021-01-10T20:28:22.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-04T21:35:56.000Z (over 2 years ago)
- Last Synced: 2025-01-29T22:33:10.269Z (4 months ago)
- Topics: docker, snippets
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker recipes
[](https://github.com/prettier/prettier)
[](https://github.com/malcodeman/docker-recipes/blob/master/LICENSE)These are some use cases and code snippets to get you started with Docker.
## Recipes
### python
```dockerfile
FROM python:3-alpine
RUN pip install --upgrade pip
RUN mkdir /src
ADD . .
WORKDIR /src
RUN pip install -r requirements.txt
CMD gunicorn --bind 0.0.0.0:$PORT wsgi
```### node
```dockerfile
FROM node:12-alpine
WORKDIR /app
COPY package.json ./
COPY yarn.lock ./
RUN yarn install --production
COPY . .
EXPOSE 8000
CMD node server.js
```## License
[MIT](./LICENSE)