-
Notifications
You must be signed in to change notification settings - Fork 46
/
Dockerfile.dev
34 lines (26 loc) · 1.12 KB
/
Dockerfile.dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM python:3.9-slim-bullseye
ENV DEBIAN_FRONTEND=noninteractive
ENV LC_ALL=C.UTF-8 LANG=C.UTF-8
RUN \
apt-get update && apt-get install -yqq wget gnupg && \
echo "deb https://deb.nodesource.com/node_18.x bullseye main" > /etc/apt/sources.list.d/nodesource.list && \
wget -qO- https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
apt-get update && \
apt-get upgrade -yqq && \
apt-get install -yqq nodejs && \
rm -rf /var/lib/apt/lists/*
# Install gherkin-lint
RUN npm install -g gherkin-lint
# Do not write .pyc files
ENV PYTHONDONTWRITEBYTECODE 1
# Do not ever buffer console output
ENV PYTHONUNBUFFERED 1
RUN pip install --upgrade pip poetry pip install supervisor
COPY poetry.lock pyproject.toml README.md config/supervisord.conf .gherkin-lintrc /app/
COPY src /app/src/
RUN mkdir /app/var && mkdir /app/var/log && mkdir /app/var/mail && mkdir /app/var/sms && mkdir /app/var/gcm && mkdir /app/var/downloads
WORKDIR /app
RUN poetry config virtualenvs.create false && poetry install
RUN useradd -ms /bin/bash behaving && chown -R behaving /app
USER behaving
ENTRYPOINT [ "supervisord" ]