Skip to content

Instantly share code, notes, and snippets.

@zs-dima
Last active March 3, 2023 17:23
Show Gist options
  • Save zs-dima/193dde9bba094bcf2189867ffd63424d to your computer and use it in GitHub Desktop.
Save zs-dima/193dde9bba094bcf2189867ffd63424d to your computer and use it in GitHub Desktop.
Check application version Dockerfile; final image
FROM nginx:alpine as production
COPY --from=build_dart /runtime/ /
COPY --from=build_dart /app/tool/prepare-app-to-start /app/bin/
COPY --from=build_dart --chmod=0755 /app/tool/entrypoint.sh /app/bin/
COPY --from=build_web /home/build/web /usr/share/nginx/html
EXPOSE 80/tcp
ENTRYPOINT ["/app/bin/entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment