mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-24 17:11:49 +00:00
devops: use entrypoints
This commit is contained in:
parent
3ba56a8df5
commit
04b7c92ab5
2 changed files with 4 additions and 2 deletions
|
|
@ -7,5 +7,7 @@ FROM debian:bullseye-slim
|
||||||
#RUN apt-get update && apt-get install -y PRIPADNE_DEPS && rm -rf /var/lib/apt/lists/*
|
#RUN apt-get update && apt-get install -y PRIPADNE_DEPS && rm -rf /var/lib/apt/lists/*
|
||||||
COPY --from=builder /portfolio/target/release/portfolio /usr/local/bin/portfolio
|
COPY --from=builder /portfolio/target/release/portfolio /usr/local/bin/portfolio
|
||||||
|
|
||||||
|
VOLUME ["/portfolio"]
|
||||||
WORKDIR /portfolio
|
WORKDIR /portfolio
|
||||||
CMD ["portfolio"]
|
|
||||||
|
ENTRYPOINT ["portfolio"]
|
||||||
|
|
|
||||||
|
|
@ -16,4 +16,4 @@ COPY --from=0 /app .
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["node", "./build"]
|
ENTRYPOINT ["node", "./build"]
|
||||||
Loading…
Reference in a new issue