Update docker scripts
This commit is contained in:
parent
7572df48f7
commit
8fa255631d
3 changed files with 13 additions and 7 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -3,4 +3,4 @@
|
||||||
ARGS="$*"
|
ARGS="$*"
|
||||||
echo "Arguments: $ARGS"
|
echo "Arguments: $ARGS"
|
||||||
|
|
||||||
make "$0"
|
exec make "$@"
|
||||||
|
|
Loading…
Reference in a new issue