tacticalrmm/.devcontainer/api.dockerfile

26 lines
600 B
Plaintext
Raw Normal View History

2021-11-19 06:58:18 +00:00
FROM python:3.9.9-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
RUN groupadd -g 1000 tactical && \
useradd -u 1000 -g 1000 tactical
# Copy dev python reqs
COPY .devcontainer/requirements.txt /
# Copy docker entrypoint.sh
COPY .devcontainer/entrypoint.sh /
2021-01-02 05:05:37 +00:00
RUN chmod +x /entrypoint.sh
2021-01-02 05:05:37 +00:00
ENTRYPOINT ["/entrypoint.sh"]
WORKDIR ${WORKSPACE_DIR}/api/tacticalrmm