Fix env variables
This commit is contained in:
@ -7,9 +7,15 @@ FROM docker.io/node:16 AS builder
|
||||
# Set working directory
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
# Filled with placeholders, later changed and managed
|
||||
# by the substitute_environment_variables.sh file
|
||||
ENV SAFETWITCH_BACKEND_DOMAIN SAFETWITCH_BACKEND_DOMAIN_PLACEHOLDER
|
||||
ENV SAFETWITCH_INSTANCE_DOMAIN SAFETWITCH_INSTANCE_DOMAIN_PLACEHOLDER
|
||||
ENV SAFETWITCH_HTTPS SAFETWITCH_HTTPS_PLACEHOLDER
|
||||
ENV SAFETWITCH_DEFAULT_LOCALE SAFETWITCH_DEFAULT_LOCALE_PLACEHOLDER
|
||||
ENV SAFETWITCH_FALLBACK_LOCALE SAFETWITCH_FALLBACK_LOCALE_PLACEHOLDER
|
||||
ENV SAFETWITCH_DEFAULT_THEME SAFETWITCH_DEFAULT_THEME_PLACEHOLDER
|
||||
# Copy all files from current directory to working dir in image
|
||||
COPY . .
|
||||
# install node modules and build assets
|
||||
@ -23,7 +29,7 @@ RUN mkdir /app
|
||||
# Copy static assets from builder stage
|
||||
COPY --from=builder /app/dist /app
|
||||
# Containers run nginx with global directives and daemon off
|
||||
EXPOSE 80
|
||||
EXPOSE 8280
|
||||
|
||||
# Overriding the default NGINX container behavior
|
||||
COPY ./substitute_environment_variables.sh ./substitute_environment_variables.sh
|
||||
|
Reference in New Issue
Block a user