Docker setup

This commit is contained in:
Ahmed Al-Taiar
2024-10-07 20:58:52 -04:00
parent 835d895fc0
commit 11783069a8
4 changed files with 20 additions and 13 deletions

View File

@@ -37,8 +37,16 @@ FROM base as api_build
# If your api side build relies on build-time environment variables,
# specify them here as ARGs. (But don't put secrets in your Dockerfile!)
#
# ARG MY_BUILD_TIME_ENV_VAR
ARG ADDRESS_PROD
ARG API_ADDRESS_PROD
ARG ADDRESS_DEV
ARG API_ADDRESS_DEV
ARG MAX_HTTP_CONNECTIONS_PER_MINUTE
ARG GMAIL
ARG GMAIL_SMTP_PASSWORD
ARG FIRST_NAME
ARG LAST_NAME
COPY --chown=node:node api api
RUN yarn rw build api
@@ -107,9 +115,9 @@ ENV NODE_ENV=production
# If you are using a custom server file, you must use the following
# command to launch your server instead of the default api-server below.
# This is important if you intend to configure GraphQL to use Realtime.
#
# CMD [ "./api/dist/server.js" ]
CMD [ "node_modules/.bin/rw-server", "api" ]
CMD [ "./api/dist/server.js" ]
# CMD [ "node_modules/.bin/rw-server", "api" ]
# web serve
# ---------