-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
25 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
.next |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Verwenden Sie eine offizielle Node.js-Image-Version als Basis | ||
FROM node:18-alpine | ||
|
||
# Setzen Sie das Arbeitsverzeichnis im Container | ||
WORKDIR /usr/src/app | ||
|
||
# Kopieren Sie die package.json- und package-lock.json-Dateien, um die Abhängigkeiten zu installieren | ||
COPY package*.json ./ | ||
|
||
# Installieren Sie die Abhängigkeiten | ||
RUN npm install | ||
|
||
# Kopieren Sie den restlichen Anwendungscode | ||
COPY . . | ||
|
||
# Erstellen Sie die statischen Dateien | ||
RUN npm run build | ||
|
||
# Exponieren Sie den Port, auf dem die Anwendung läuft | ||
EXPOSE 3000 | ||
|
||
# Starten Sie die Anwendung | ||
CMD ["npm", "start"] |