Add custom Dockerfile for timelimit-server
Build and push timelimit-server-ui image / check (push) Successful in 1s
Build and push timelimit-server-ui image / build (push) Has been skipped
Build and push timelimit-server image / check (push) Successful in 1s
Build and push timelimit-server image / build (push) Has been skipped
Build and push timelimit-server-ui image / check (push) Successful in 1s
Build and push timelimit-server-ui image / build (push) Has been skipped
Build and push timelimit-server image / check (push) Successful in 1s
Build and push timelimit-server image / build (push) Has been skipped
This commit is contained in:
@@ -41,7 +41,6 @@ jobs:
|
||||
needs: check
|
||||
if: needs.check.outputs.exists == 'false'
|
||||
steps:
|
||||
|
||||
# Checkout timelimit-server repository for build
|
||||
- name: Checkout timelimit-server repository
|
||||
uses: actions/checkout@v4
|
||||
@@ -50,6 +49,17 @@ jobs:
|
||||
ref: ${{ needs.check.outputs.tag }}
|
||||
token: ${{ secrets.ACCESS_TOKEN }}
|
||||
|
||||
# Checkout THIS repository (Dockerfile lives here)
|
||||
- name: Checkout current repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
path: docker
|
||||
|
||||
# Copy custom dockerfile
|
||||
- name: Prepare Docker context
|
||||
run: |
|
||||
cp -f docker/Dockerfile-server Dockerfile
|
||||
|
||||
# Login to registry (needed to inspect latest image)
|
||||
- name: Docker login
|
||||
run: |
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
FROM node:24-alpine
|
||||
|
||||
# Create app directories
|
||||
RUN mkdir -p /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Install app dependencies
|
||||
COPY package.json package-lock.json tsconfig.json eslint.config.mjs Readme.md /usr/src/app/
|
||||
COPY src/ /usr/src/app/src/
|
||||
COPY scripts/ /usr/src/app/scripts/
|
||||
COPY other/ /usr/src/app/other/
|
||||
RUN mkdir -p docs/schema && npm install --exclude=optional && npm run build && npm prune --omit=dev && rm -rf ./src
|
||||
|
||||
# Start the App
|
||||
EXPOSE 8080
|
||||
CMD [ "npm", "start" ]
|
||||
Reference in New Issue
Block a user