-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from ibLeDy/feat/docker-image
- Loading branch information
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters