Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker: use slim base images to reduce size #129

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# build stage
FROM node:16 as build-stage
FROM node:16-slim as build-stage
WORKDIR /app
COPY ./tau-dashboard/package*.json ./
RUN npm install
COPY ./tau-dashboard /app
RUN npm run build

# prododuction stage
FROM python:3.8 as prod-stage
FROM python:3.8-slim as prod-stage
ENV PYTHONUNBUFFERED=1 PYTHONHASHSEED=random \
PYTHONDONTWRITEBYTECODE=1 PIP_NO_CACHE_DIR=1

# install supervisord (supervisor-stdout is not py3 compatible in pypi)
RUN apt update && apt install -y git && rm -rf /var/lib/apt/lists/*
RUN pip install supervisor git+https://github.com/coderanger/supervisor-stdout

# Sets work directory to /code
Expand Down