Closed gaby closed 1 year ago
@lllllllillllllillll You have to go here https://github.com/lllllllillllllillll/DweebUI/actions and click "Enable Actions"
@lllllllillllllillll It may need some tweaking. Are you using something special to build the image locally?
Dockerfile:1
--------------------
1 | >>> # syntax=docker/dockerfile:1
2 |
3 | # Comments are provided throughout this file to help you get started.
--------------------
ERROR: failed to solve: target stage release could not be found
Error: buildx failed with: ERROR: failed to solve: target stage release could not be found
@gaby
The dockerfile uses a node:alpine image:
ARG NODE_VERSION=20.0.0
FROM node:${NODE_VERSION}-alpine
ENV NODE_ENV production
and the working build command was:
docker buildx build --push --platform linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6 --tag=lllllllillllllillll/dweebui:v0.06-dev .
@gaby build hangs forever unless I remove the run commands from the dockerfile:
RUN --mount=type=bind,source=package.json,target=package.json \
--mount=type=bind,source=package-lock.json,target=package-lock.json \
--mount=type=cache,target=/root/.npm \
npm ci --omit=dev
@lllllllillllllillll Let me do some research and get back to you
@lllllllillllllillll Found the issue, it's a 1 line fix in the CI file. Will be submitting another PR to address that and also fix the default Docker image. The 20.0.0-alpine
tag hasn't been updated in 8 months
linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6
ghcr.io
. If you are happy with that support for Docker Hub can be added easilyFixes #15