Skip to content

Commit

Permalink
Merge pull request #42 from ibLeDy/feat/docker-image
Browse files Browse the repository at this point in the history
  • Loading branch information
ibLeDy committed Oct 10, 2022
2 parents 2cf0b6b + ff7a822 commit ee8c8b8
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.git
.github
.mypy_cache
.pre-commit-config.yaml
.pytest_cache
.venv
.tox
*.egg-info
build
dist
requirements-dev.txt
test
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM python:3.10-slim-buster

ENV PYTHONUNBUFFERED 1

LABEL maintainer="deejaynof@gmail.com"

RUN : \
&& groupadd --gid 1001 timezone-converter \
&& useradd --uid 1001 --gid timezone-converter --system --create-home --home-dir /home/timezone-converter timezone-converter \
&& :
USER timezone-converter

WORKDIR /opt
COPY --chown=timezone-converter:timezone-converter . .

ENV PATH="/home/timezone-converter/.local/bin:$PATH"
RUN : \
&& python3 -m pip --no-cache-dir install . \
&& :

ENTRYPOINT [ "timezone-converter" ]
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ pip install -U timezone-converter
timezone-converter <timezone> [<timezone> ...]
```

### Docker

```bash
docker run --rm -t bledy/timezone-converter <timezone> [<timezone> ...]
```

## Features

### Comparison between multiple timezones
Expand Down

0 comments on commit ee8c8b8

Please sign in to comment.