-
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 #3 from ionicprotocol/test/swagger
added swagger and test ci
- Loading branch information
Showing
7 changed files
with
667 additions
and
110 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,30 @@ | ||
# Use node alpine image as the base image | ||
FROM node:alpine | ||
# Set working directory in the container | ||
WORKDIR /app | ||
|
||
# Copy package.json and package-lock.json to the working directory | ||
COPY package*.json ./ | ||
# Install dependencies | ||
RUN npm install | ||
RUN npm run build | ||
|
||
|
||
# Copy the env file | ||
COPY .env . | ||
|
||
# # Copy the env.txt file | ||
# COPY env.txt ./ | ||
|
||
# # Create .env file and copy its content from env.txt | ||
# RUN touch .env && \ | ||
# cat env.txt > .env | ||
|
||
# Copy the rest of the application files | ||
COPY . . | ||
|
||
# Expose port 3000 (assuming your application runs on this port) | ||
EXPOSE 3000 | ||
|
||
# Command to run the application | ||
CMD ["npm", "run" , "dev"] |
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.