test new slim docker image
This commit is contained in:
parent
57e18a1121
commit
4e317728a4
4
.github/workflows/dev-image.yml
vendored
4
.github/workflows/dev-image.yml
vendored
@ -31,7 +31,7 @@ jobs:
|
||||
--platform linux/amd64,linux/arm64 \
|
||||
--output "type=image,push=false" \
|
||||
--tag albertoxamin/bang:dev \
|
||||
--file ./Dockerfile ./
|
||||
--file ./Dockerfile-armv7 ./
|
||||
-
|
||||
name: Docker Buildx (build)
|
||||
run: |
|
||||
@ -56,7 +56,7 @@ jobs:
|
||||
--platform linux/amd64,linux/arm/v7,linux/arm64 \
|
||||
--output "type=image,push=true" \
|
||||
--tag albertoxamin/bang:dev \
|
||||
--file ./Dockerfile ./
|
||||
--file ./Dockerfile-armv7 ./
|
||||
-
|
||||
name: Inspect image
|
||||
run: |
|
||||
|
@ -2,10 +2,16 @@ FROM node:lts-alpine as builder
|
||||
COPY ./frontend .
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
FROM python:3.7.10-stretch
|
||||
|
||||
FROM python:3.7.10-stretch as pybuilder
|
||||
WORKDIR /code
|
||||
COPY ./backend /code/
|
||||
RUN pip install --user -r requirements.txt
|
||||
|
||||
FROM python:3.7.10-slim-stretch as app
|
||||
COPY --from=pybuilder /root/.local /root/.local
|
||||
COPY --from=pybuilder /code /dist
|
||||
COPY --from=builder ./dist /dist/
|
||||
COPY ./backend /dist/
|
||||
WORKDIR /dist
|
||||
RUN pip install -r requirements.txt
|
||||
EXPOSE 5001
|
||||
ENTRYPOINT ["python", "/dist/__init__.py"]
|
||||
|
Loading…
Reference in New Issue
Block a user