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 11FROM python:3.11-slim as builder
22
3- WORKDIR /apps /cmdcomp/
3+ WORKDIR /app /cmdcomp/
44RUN pip install --upgrade pip && pip install --no-cache-dir poetry
5- COPY . /apps /cmdcomp/
5+ COPY . /app /cmdcomp/
66RUN poetry build -f wheel
77RUN poetry version --short > dist/VERSION
88
99
1010FROM python:3.11-slim as runner
1111
12- WORKDIR /apps /cmdcomp/
12+ WORKDIR /app /cmdcomp/
1313COPY --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
1515RUN pip install --no-cache-dir "/tmp/dist/cmdcomp-$(cat /tmp/dist/VERSION)-py3-none-any.whl"
1616
1717ENTRYPOINT ["cmdcomp" ]
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments