Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
upgrade debian base
Browse files Browse the repository at this point in the history
  • Loading branch information
azlux committed Oct 27, 2021
1 parent 81ff7c3 commit 9b9b4e4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile.local
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
ARG ARCH=

FROM ${ARCH}python:3-slim-buster AS source
FROM ${ARCH}python:3-slim-bullseye AS source
ARG VERSION=master
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /botamusique
RUN apt-get update && apt-get install -y git
RUN git clone --recurse-submodules https://github.com/azlux/botamusique.git . && git checkout $VERSION


FROM ${ARCH}python:3-slim-buster AS python-builder
FROM ${ARCH}python:3-slim-bullseye AS python-builder
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /botamusique
RUN apt-get update \
Expand All @@ -20,23 +20,23 @@ RUN python3 -m venv venv \
&& venv/bin/pip install -r requirements.txt


FROM ${ARCH}node:14-buster-slim AS node-builder
FROM ${ARCH}node:14-bullseye-slim AS node-builder
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /botamusique/web
COPY --from=source /botamusique/web .
RUN npm install
RUN npm run build


FROM ${ARCH}python:3-slim-buster AS template-builder
FROM ${ARCH}python:3-slim-bullseye AS template-builder
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /botamusique
COPY --from=python-builder /botamusique .
COPY --from=node-builder /botamusique/templates templates
RUN venv/bin/python scripts/translate_templates.py --lang-dir /botamusique/lang --template-dir /botamusique/templates


FROM ${ARCH}python:3-slim-buster
FROM ${ARCH}python:3-slim-bullseye
ENV DEBIAN_FRONTEND=noninteractive
EXPOSE 8181
WORKDIR /botamusique
Expand Down

0 comments on commit 9b9b4e4

Please sign in to comment.