Update docker scripts

This commit is contained in:
Glenn Y. Rolland 2021-11-23 23:46:50 +01:00
parent 7572df48f7
commit 8fa255631d
3 changed files with 13 additions and 7 deletions

View File

@ -3,7 +3,10 @@ version: "3.4"
services:
app:
build: .
build:
context: .
dockerfile: docker/Dockerfile
image: glenux/teaching-boilerplate
environment: {}
ports:
- 5100:5100

View File

@ -1,13 +1,16 @@
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 pipenv \
&& apt-get clean
RUN apt-get update && \
apt-get install -y python3 python3-pip
RUN apt-get update \
&& apt-get install -y make build-essential inotify-tools \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& truncate -s 0 /var/log/*log
RUN pip3 install pipenv
COPY . /app
WORKDIR /app

View File

@ -3,4 +3,4 @@
ARGS="$*"
echo "Arguments: $ARGS"
make "$0"
exec make "$@"