Skip to content

Commit 4a63c6c

Browse files
notrequired
1 parent b6a00b2 commit 4a63c6c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/build-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
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 }}

src/WebApp.Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ FROM node:20-alpine AS frontend
22
RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app
33

44
WORKDIR /home/node/app
5-
COPY ./frontend/package*.json ./
5+
COPY ./src/frontend/package*.json ./
66
USER node
77
RUN npm ci
8-
COPY --chown=node:node ./frontend/ ./frontend
8+
COPY --chown=node:node ./src/frontend/ ./frontend
99
# COPY --chown=node:node ./static/ ./static
1010
WORKDIR /home/node/app/frontend
1111
RUN 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/
2323
RUN 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/
2929
COPY --from=frontend /home/node/app/static /usr/src/app/static/
3030
WORKDIR /usr/src/app
3131
EXPOSE 80

0 commit comments

Comments
 (0)