generated from Kibibit/project-template
-
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.
feat(server): add simple server for deploying
- Loading branch information
1 parent
5fe1cf7
commit 6919708
Showing
8 changed files
with
4,181 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 @@ | ||
node_modules |
Binary file not shown.
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,40 @@ | ||
# Use a Node.js base image | ||
FROM node:20 | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /usr/src/app | ||
|
||
# Install Chromium dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
ca-certificates \ | ||
fonts-liberation \ | ||
libappindicator3-1 \ | ||
libasound2 \ | ||
libatk-bridge2.0-0 \ | ||
libatk1.0-0 \ | ||
libcups2 \ | ||
libdbus-1-3 \ | ||
libgbm1 \ | ||
libnspr4 \ | ||
libnss3 \ | ||
libxcomposite1 \ | ||
libxrandr2 \ | ||
xdg-utils \ | ||
--no-install-recommends && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# Install Puppeteer and its dependencies | ||
RUN npm install puppeteer | ||
|
||
# Copy the application files to the container | ||
COPY package*.json ./ | ||
COPY . . | ||
|
||
# Install application dependencies | ||
RUN npm install | ||
|
||
# Expose the API port | ||
EXPOSE 3000 | ||
|
||
# Run the server | ||
CMD ["node", "dist/simple-server.js"] |
Oops, something went wrong.