-
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.
Merge pull request #2 from trueberryless-org/update-template-files
[ci] sync template files
- Loading branch information
Showing
1 changed file
with
4 additions
and
23 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,4 @@ | ||
# 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"] | ||
FROM httpd:2.4 AS runtime | ||
COPY /src/dist /usr/local/apache2/htdocs/ | ||
EXPOSE 80 | ||
EXPOSE 443 |