Skip to content

Commit f1ed101

Browse files
committed
Fix: dockerimage.
1 parent fad5a2a commit f1ed101

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
FROM python:3.11-slim as builder
22

3-
WORKDIR /apps/cmdcomp/
3+
WORKDIR /app/cmdcomp/
44
RUN pip install --upgrade pip && pip install --no-cache-dir poetry
5-
COPY . /apps/cmdcomp/
5+
COPY . /app/cmdcomp/
66
RUN poetry build -f wheel
77
RUN poetry version --short > dist/VERSION
88

99

1010
FROM python:3.11-slim as runner
1111

12-
WORKDIR /apps/cmdcomp/
12+
WORKDIR /app/cmdcomp/
1313
COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages
14-
COPY --from=builder /apps/cmdcomp/dist /tmp/dist
14+
COPY --from=builder /app/cmdcomp/dist /tmp/dist
1515
RUN pip install --no-cache-dir "/tmp/dist/cmdcomp-$(cat /tmp/dist/VERSION)-py3-none-any.whl"
1616

1717
ENTRYPOINT ["cmdcomp"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ cmdcomp --file ${YOUR_CONFIG_FILE} --shell-type bash
3030
### Docker
3131

3232
```shell
33-
docker run --rm -itv $(pwd):/apps/cmdcomp yassun4dev/cmdcomp --file ${YOUR_CONFIG_FILE} --shell-type bash
33+
docker run --rm -itv $(pwd):/app/cmdcomp yassun4dev/cmdcomp --file ${YOUR_CONFIG_FILE} --shell-type bash
3434
```
3535

3636
## Config

0 commit comments

Comments
 (0)