2022-02-02 03:15:38 +00:00
|
|
|
# pulls community scripts from git repo
|
2024-02-29 02:09:33 +00:00
|
|
|
FROM python:3.11.8-slim AS GET_SCRIPTS_STAGE
|
2022-02-02 03:15:38 +00:00
|
|
|
|
2023-10-04 15:01:28 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y --no-install-recommends git && \
|
|
|
|
git clone https://github.com/amidaware/community-scripts.git /community-scripts
|
2022-02-02 03:15:38 +00:00
|
|
|
|
2024-02-29 02:09:33 +00:00
|
|
|
FROM python:3.11.8-slim
|
2021-01-02 05:05:37 +00:00
|
|
|
|
|
|
|
ENV TACTICAL_DIR /opt/tactical
|
|
|
|
ENV TACTICAL_READY_FILE ${TACTICAL_DIR}/tmp/tactical.ready
|
|
|
|
ENV WORKSPACE_DIR /workspace
|
|
|
|
ENV TACTICAL_USER tactical
|
|
|
|
ENV VIRTUAL_ENV ${WORKSPACE_DIR}/api/tacticalrmm/env
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
|
2021-04-26 02:17:43 +00:00
|
|
|
EXPOSE 8000 8383 8005
|
2021-01-02 05:05:37 +00:00
|
|
|
|
2023-04-29 19:32:39 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y build-essential weasyprint
|
2022-03-10 00:57:55 +00:00
|
|
|
|
2023-10-04 15:01:28 +00:00
|
|
|
RUN groupadd -g 1000 tactical && \
|
|
|
|
useradd -u 1000 -g 1000 tactical
|
2021-01-02 05:05:37 +00:00
|
|
|
|
2022-02-02 03:15:38 +00:00
|
|
|
# copy community scripts
|
|
|
|
COPY --from=GET_SCRIPTS_STAGE /community-scripts /community-scripts
|
|
|
|
|
2021-08-31 02:17:21 +00:00
|
|
|
# Copy dev python reqs
|
2023-06-19 05:29:10 +00:00
|
|
|
COPY .devcontainer/requirements.txt /
|
2021-08-31 02:17:21 +00:00
|
|
|
|
|
|
|
# Copy docker entrypoint.sh
|
|
|
|
COPY .devcontainer/entrypoint.sh /
|
2021-01-02 05:05:37 +00:00
|
|
|
RUN chmod +x /entrypoint.sh
|
2021-08-31 02:17:21 +00:00
|
|
|
|
2021-01-02 05:05:37 +00:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
|
|
|
|
WORKDIR ${WORKSPACE_DIR}/api/tacticalrmm
|