Hello guys, I have a problem here in Docker, I wan...
# dev
a
Hello guys, I have a problem here in Docker, I wanted to know if anyone has faced it. I'm trying to upload Medplum via Docker, but in the npm run build command it gives an error. The following error is generated: 8,505 @medplum/core:build: (node:204) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time 8,505 @medplum/core:build: (Use
node --trace-warnings ...
to show where the warning was created) 8,524 @medplum/core:build: fatal: not a git repository (or any of the parent directories): .git 8,528 @medplum/core:build: node:internal/errors:932 8,528 @medplum/core:build: const err = new Error(message); 8,528 @medplum/core:build: ^ 8,528 @medplum/core:build: 8,528 @medplum/core:build: Error: Command failed: git rev-parse --short HEAD 8,528 @medplum/core:build: fatal: not a git repository (or any of the parent directories): .git I'm creating a container for Postgres, for Redis, one for the App and another for the server, and I'm uploading it via Docker with the following dockerfile: FROM node:21-slim RUN apt-get update && apt-get install -y git COPY . /usr/src/medplum WORKDIR /usr/src/medplum RUN npm ci RUN npm run build RUN chmod -R 777 /usr/src/medplum/packages/app/docker-entrypoint.sh RUN chmod -R 777 /usr/src/medplum/packages/server/docker-entrypoint.sh CMD["bash"]
r
Thanks for bring this to our attention @Adriano Freitas ! We're pushing a fix for our build scripts here: https://github.com/medplum/medplum/pull/3396/files
a
Thank you so much @rahul1 ! It worked for me! As I don't have access to Git, if I can adjust the packages/app/vite.config.ts file it also has the same problem. I already adjusted it here in my environment and it worked. 😆
163 Views