-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: docker image and update docs #16
fix: docker image and update docs
- Loading branch information
Showing
4 changed files
with
86 additions
and
81 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
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 |
---|---|---|
@@ -1,23 +1,18 @@ | ||
FROM python:3.9 | ||
FROM python:3.9-slim | ||
|
||
ENV USER worker | ||
ENV WORKDIR /app | ||
ENV PATH "${WORKDIR}/${USER}/.local/bin:${PATH}" | ||
ENV PATH "/home/${USER}/.local/bin:${PATH}" | ||
|
||
RUN useradd -m $USER --shell /bin/bash | ||
|
||
RUN useradd -m $USER -b $WORKDIR --shell /bin/bash | ||
|
||
WORKDIR $WORKDIR | ||
WORKDIR /home/$USER | ||
|
||
COPY . . | ||
RUN chown -R $USER:$USER $WORKDIR | ||
|
||
|
||
USER $USER | ||
|
||
RUN pip install --no-cache-dir --upgrade pip | ||
RUN pip install -r requirements.txt | ||
|
||
ENV PYTHONPATH $WORKDIR | ||
ENV PYTHONPATH "/home/$USER" | ||
|
||
ENTRYPOINT ["python", "notion_gcal_sync/__main__.py"] |
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
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