mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-08-28 11:46:02 +08:00
Improvements to deployment/Render (#353)
This commit is contained in:
parent
0c35ff4f0d
commit
366611f3ac
4 changed files with 5 additions and 5 deletions
|
@ -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:
|
||||
|
||||
[](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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -14,6 +14,8 @@ services:
|
|||
sync: false
|
||||
- key: MONO
|
||||
value: true
|
||||
- key: PORT
|
||||
value: 80
|
||||
- key: APP_SECRET
|
||||
generateValue: true
|
||||
- key: DB_CLIENT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue