File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 6060 - name : Build Docker Image and optionally push
6161 uses : docker/build-push-action@v6
6262 with :
63- context : ./src
63+ context : .
6464 file : ${{ inputs.dockerfile }}
6565 push : ${{ inputs.push }}
6666 cache-from : type=registry,ref=${{ inputs.registry }}/${{ inputs.app_name}}:${{ steps.determine_tag.outputs.tagname }}
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ FROM node:20-alpine AS frontend
22RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
33
44WORKDIR /home/node/app
5- COPY ./frontend/package*.json ./
5+ COPY ./src/ frontend/package*.json ./
66USER node
77RUN npm ci
8- COPY --chown=node:node ./frontend/ ./frontend
8+ COPY --chown=node:node ./src/ frontend/ ./frontend
99# COPY --chown=node:node ./static/ ./static
1010WORKDIR /home/node/app/frontend
1111RUN npm run build
@@ -19,13 +19,13 @@ RUN apk add --no-cache --virtual .build-deps \
1919 && apk add --no-cache \
2020 libpq
2121
22- COPY ./requirements.txt /usr/src/app/
22+ COPY ./src/ requirements.txt /usr/src/app/
2323RUN pip install --upgrade pip setuptools wheel \
2424 && pip install --no-cache-dir -r /usr/src/app/requirements.txt \
2525 && pip install --no-cache-dir uwsgi \
2626 && rm -rf /root/.cache
2727
28- COPY ./ /usr/src/app/
28+ COPY ./src/ /usr/src/app/
2929COPY --from=frontend /home/node/app/static /usr/src/app/static/
3030WORKDIR /usr/src/app
3131EXPOSE 80
You can’t perform that action at this time.
0 commit comments