Improvements to deployment/Render (#353)

This commit is contained in:
Chris Anderson 2024-02-10 20:24:59 -06:00 committed by GitHub
parent 0c35ff4f0d
commit 366611f3ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View file

@ -32,7 +32,7 @@ You can run Parcelvoy locally or in the cloud easily using Docker.
You can do a one-click deploy on Render using the button below:
[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/parcelvoy/platform)
(Make sure to the BASE_URL to the URL of the web server)
### Docker Compose

View file

@ -12,7 +12,6 @@ WORKDIR /usr/src/app
COPY --from=compile /usr/src/app/apps/platform/package*.json ./
COPY --from=compile /usr/src/app/apps/platform/build ./build
COPY --from=compile /usr/src/app/apps/platform/db ./db
COPY --from=compile /usr/src/app/apps/platform/scripts ./scripts
COPY --from=compile /usr/src/app/apps/platform/public ./public
RUN npm ci --only=production

View file

@ -20,9 +20,8 @@ WORKDIR /usr/src/app
COPY --from=backend_compile /usr/src/app/apps/platform/package*.json ./
COPY --from=backend_compile /usr/src/app/apps/platform/build ./build
COPY --from=backend_compile /usr/src/app/apps/platform/db ./db
COPY --from=backend_compile /usr/src/app/apps/platform/scripts ./scripts
COPY --from=backend_compile /usr/src/app/apps/platform/public ./public
COPY --from=frontend_compile /usr/src/app/apps/ui/build ./public
COPY --from=backend_compile /usr/src/app/apps/platform/public ./build/public
COPY --from=frontend_compile /usr/src/app/apps/ui/build ./build/public
RUN npm ci --only=production
# --------------> The production image

View file

@ -14,6 +14,8 @@ services:
sync: false
- key: MONO
value: true
- key: PORT
value: 80
- key: APP_SECRET
generateValue: true
- key: DB_CLIENT