Add docker files

This commit is contained in:
Glenn Y. Rolland 2021-10-10 11:21:36 +02:00
parent 163cfb9dce
commit 9e68c430f2
3 changed files with 27 additions and 10 deletions

View file

@ -1,10 +0,0 @@
FROM node:buster-slim
MAINTAINER Glenn ROLLAND <glenux@glenux.net>
RUN apt-get update && \
apt-get install -y make python build-essential
COPY . /app
WORKDIR /app
RUN make prepare
CMD make watch

21
docker/Dockerfile Normal file
View file

@ -0,0 +1,21 @@
FROM node:bullseye-slim
MAINTAINER Glenn ROLLAND <glenux@glenux.net>
RUN apt-get update && \
apt-get install -y make build-essential
RUN apt-get update && \
apt-get install -y python3 python3-pip
RUN pip3 install pipenv
COPY . /app
WORKDIR /app
ENV LANG=C
ENV LC_ALL=C
RUN make prepare
ENTRYPOINT ["/app/docker/entrypoint.sh"]
CMD ["watch"]

6
docker/entrypoint.sh Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
ARGS="$*"
echo "Arguments: $ARGS"
make "$0"