-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockerfile for apollo collaboration server fails to build on Mac #455
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are quite a few changes here, are all of them necessary or is it possible to do a more minimal set of changes? At minimum, the LABEL
needs to be replaced since that's used by the GitHub container registry.
In particular, I'd like to keep all three build stages since it offers better caching, which helps when having to build multiple times. Another thing is that we should avoid copying the whole .yarn
directory over from the build step, since it includes all the installed dev dependencies, which will increase the size of our published image (yarn workspaces focus
installs only the dependencies and not the dev dependencies)
Issue seems to be with the We get below error when we build the image with
|
I'm worried that the switch to |
I'm getting same error with
|
That's really strange that it fails at a totally different place under |
h.9a
…On Thu, Oct 3, 2024, 10:48 PM Garrett Stevens ***@***.***> wrote:
That's really strange that it fails at a totally different place under
node:20. Does node:20-alpine work? Also, what is the version of Docker
that you are running?
—
Reply to this email directly, view it on GitHub
<#455 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRV2QLMQEF23C4TNBLGS53ZZX6XTAVCNFSM6AAAAABO6CANJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOJSGY4TGNZRGU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Yes, I'm running docker version 26.0.0, build 2ae903e. |
The current Dockerfile for the collaboration server
ghcr.io/gmod/apollo-collaboration-server:devel
is not building successfully and does not run on a Mac machine. I updated the Dockerfile to use node:18-alpine as the base image and made some modifications to the build stages. These changes allow the image to build correctly and run on Mac environments without issues.