mirror of
https://github.com/Cameri/nostream.git
synced 2025-09-17 08:58:33 +02:00
Dockerfile Simplified Deployment
This commit is contained in:
committed by
Ricardo Arturo Cabral Mejía
parent
7f6b9bfec0
commit
53a5106a1c
@@ -1,14 +1,20 @@
|
||||
## Author Saransh Sharma @cynsar foundation
|
||||
FROM node:18-alpine3.16 as build
|
||||
|
||||
ARG DB_HOST
|
||||
ARG DB_PORT
|
||||
ARG DB_NAME
|
||||
ARG DB_USER
|
||||
ARG DB_PASSWORD
|
||||
ARG PGHOST
|
||||
ARG PGPORT
|
||||
ARG PGDATABASE
|
||||
ARG PGUSER
|
||||
ARG PGPASSWORD
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
## Build Setup for Railways
|
||||
ENV DB_HOST=$PGHOST
|
||||
ENV DB_PORT=$PGPORT
|
||||
ENV DB_NAME=$PGDATABASE
|
||||
ENV DB_USER=$PGUSER
|
||||
ENV DB_PASSWORD=$PGPASSWORD
|
||||
|
||||
COPY ["package.json", "package-lock.json","knexfile.js","./"]
|
||||
|
||||
@@ -38,13 +44,6 @@ LABEL org.opencontainers.image.description="nostr-ts-relay"
|
||||
LABEL org.opencontainers.image.authors="Ricardo Arturo Cabral Mejía"
|
||||
LABEL org.opencontainers.image.licenses=MIT
|
||||
|
||||
## Build Setup for Railways
|
||||
ENV DB_HOST=$DB_HOST
|
||||
ENV DB_PORT=$DB_PORT
|
||||
ENV DB_NAME=$DB_NAME
|
||||
ENV DB_USER=$DB_USER
|
||||
ENV DB_PASSWORD=$DB_PASSWORD
|
||||
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -54,4 +53,4 @@ RUN npm install --omit=dev --quiet
|
||||
|
||||
USER 1000:1000
|
||||
|
||||
CMD ["node", "src/index.js"]
|
||||
CMD ["node", "src/index.js"]
|
Reference in New Issue
Block a user