Flutter image. Use it to build and serve a web project. The image is built on top of a python image.
819
use it to build flutter apps for the web.
built on top of python:slim-bullseye
#stage 1 - builder FROM hajajmaor/flutter-image as builder
ENV workingdir=/app
WORKDIR ${workingdir}
COPY . ${workingdir}
RUN flutter build web
#stage 2 - server
FROM python:slim-bullseye as server
ENV PORT=8080 workingdir=/app
COPY --from=builder /flutter-app/build/web ${workingdir}
WORKDIR ${workingdir}
EXPOSE ${PORT}
CMD [ "python","-m","http.server","${PORT}" ]
Content type
Image
Digest
sha256:f24fa53e4…
Size
527.5 MB
Last updated
over 3 years ago
docker pull hajajmaor/flutter-image