-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: added frontend proxy, added translation logic for weblate to i18n
- Loading branch information
Showing
59 changed files
with
10,236 additions
and
4,050 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,46 @@ | ||
ARG DOCKER_MATRIX=ghcr.io | ||
FROM $DOCKER_MATRIX/onlineberatung/onlineberatung-nginx/onlineberatung-nginx:dockerimage.v.005-main | ||
ARG NODE_VERSION=14.21.1 | ||
ARG PORT=80 | ||
|
||
FROM node:$NODE_VERSION as proxyBuild | ||
|
||
USER node | ||
WORKDIR /app | ||
COPY proxy /app | ||
|
||
ENV NODE_ENV=development | ||
ENV PORT=$PORT | ||
|
||
# Currently nothing to build inside | ||
# RUN npm run install | ||
# RUN npm run build | ||
# RUN rm /app/node_modules | ||
|
||
### | ||
# Build is done on github so no need for docker build | ||
#FROM node:$NODE_VERSION as frontendBuild | ||
# | ||
#USER node | ||
#WORKDIR /app | ||
#COPY . /app | ||
# | ||
#ENV NODE_ENV=development | ||
#ENV PORT=$PORT | ||
# | ||
#RUN npm install --ignore-scripts | ||
#RUN npm run build | ||
|
||
# Prod build | ||
FROM node:$NODE_VERSION | ||
|
||
USER node | ||
WORKDIR /app | ||
EXPOSE $PORT | ||
COPY --from=proxyBuild /app ./ | ||
COPY build /usr/share/nginx/html | ||
COPY nginx.conf /etc/nginx/conf.d/default.conf | ||
|
||
ENV NODE_ENV=production | ||
ENV PORT=$PORT | ||
|
||
RUN npm install --ignore-scripts | ||
|
||
CMD ["npm", "run", "start"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.