-
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 #112 from sotatek-dev/develop
Develop
- Loading branch information
Showing
3 changed files
with
25 additions
and
2 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,20 @@ | ||
FROM node:18-alpine As build | ||
WORKDIR /app | ||
|
||
COPY package*.json ./ | ||
RUN npm i | ||
COPY . . | ||
RUN npm run build | ||
|
||
FROM node:18-alpine | ||
WORKDIR /app | ||
COPY --from=build /app/node_modules ./node_modules | ||
COPY --from=build /app/dist ./dist | ||
# COPY --from=build /app/.env ./.env | ||
COPY --from=build /app/package.json ./package.json | ||
COPY --from=build /app/tsconfig.build.json ./tsconfig.build.json | ||
|
||
# RUN apk --no-cache add curl | ||
EXPOSE 3969 | ||
|
||
#CMD ["sh", "-c", "yarn start"] |
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