-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
28 changed files
with
6,046 additions
and
5,751 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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM node:14-alpine | ||
|
||
# Set environment variables for production | ||
ENV NODE_ENV=production | ||
ENV NODE_PATH=/usr/local/lib/node_modules | ||
|
||
# Optional: If you want to manage versions directly, use ARG | ||
ARG version=latest | ||
|
||
# Install dependencies globally | ||
RUN npm install -g ws@$version | ||
|
||
# Copy the server.js file into the container | ||
COPY ./examples/frontend/angular/ws-proxy.js /app/ws-proxy.js | ||
|
||
# Set the working directory for the container | ||
WORKDIR /app | ||
|
||
# Expose the port your app will run on | ||
EXPOSE 4300 | ||
|
||
# Run the server when the container starts | ||
CMD ["node", "ws-proxy.js"] |
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.