-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fbd665f
commit b2d6dbb
Showing
4 changed files
with
40 additions
and
56 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,13 @@ | ||
# Verwende das offizielle Node.js-Bild als Basis | ||
FROM node:16 | ||
|
||
# Setze das Arbeitsverzeichnis im Container | ||
WORKDIR /app | ||
|
||
# Kopiere die Dateien aus dem Repository in das Arbeitsverzeichnis | ||
COPY . /app | ||
COPY . . | ||
|
||
# Setze Umgebungsvariable für die Build-Konfiguration | ||
ENV CI=false | ||
RUN npm install | ||
|
||
# Installiere Abhängigkeiten | ||
RUN cp .env.production .env && npm ci | ||
RUN yarn build | ||
RUN yarn start | ||
|
||
# Baue die Anwendung | ||
RUN npm run build | ||
|
||
# Exponiere den Port, den die Anwendung verwendet (falls erforderlich) | ||
EXPOSE 5050 | ||
|
||
# Führe die Anwendung beim Start des Containers aus | ||
CMD ["npm", "start"] | ||
EXPOSE 32001 | ||
CMD ["yarn", "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