An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        

# Docker recipes

[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](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)