Update docker scripts

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

View file

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

View file

@ -1,13 +1,16 @@
FROM node:bullseye-slim FROM node:bullseye-slim
MAINTAINER Glenn ROLLAND <glenux@glenux.net> MAINTAINER Glenn ROLLAND <glenux@glenux.net>
RUN apt-get update && \ RUN apt-get update \
apt-get install -y make build-essential && apt-get install -y python3 python3-pip pipenv \
&& apt-get clean
RUN apt-get update && \ RUN apt-get update \
apt-get install -y python3 python3-pip && 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 COPY . /app
WORKDIR /app WORKDIR /app

View file

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