fix: rm port var in docker file
All checks were successful
Build Docker Image Front / run (push) Successful in 26s
Build Docker Image Back / run (push) Successful in 39s
Build Docker Image Front / run (pull_request) Successful in 23s
Build Docker Image Back / run (pull_request) Successful in 22s
JsDocs / coverage (pull_request) Successful in 33s
Test and coverage / coverage (pull_request) Successful in 1m31s
All checks were successful
Build Docker Image Front / run (push) Successful in 26s
Build Docker Image Back / run (push) Successful in 39s
Build Docker Image Front / run (pull_request) Successful in 23s
Build Docker Image Back / run (pull_request) Successful in 22s
JsDocs / coverage (pull_request) Successful in 33s
Test and coverage / coverage (pull_request) Successful in 1m31s
This commit is contained in:
parent
e0c3580269
commit
70a49e9b22
@ -43,15 +43,11 @@ USER node
|
|||||||
# go to work folder
|
# go to work folder
|
||||||
WORKDIR /home/node
|
WORKDIR /home/node
|
||||||
|
|
||||||
|
|
||||||
ARG port
|
|
||||||
ENV env_port $port
|
|
||||||
|
|
||||||
# Expose port
|
# Expose port
|
||||||
EXPOSE $port
|
EXPOSE 3000
|
||||||
|
|
||||||
# Add Healthcheck
|
# Add Healthcheck
|
||||||
HEALTHCHECK --interval=10s --timeout=10s --start-period=5s --retries=3 CMD wget --no-verbose --tries=1 --spider http://localhost:$port || exit 1
|
HEALTHCHECK --interval=10s --timeout=10s --start-period=5s --retries=3 CMD wget --no-verbose --tries=1 --spider http://localhost:3000 || exit 1
|
||||||
|
|
||||||
# copy from build image
|
# copy from build image
|
||||||
COPY --chown=node:node --from=BUILD_IMAGE /home/node/node_modules ./node_modules
|
COPY --chown=node:node --from=BUILD_IMAGE /home/node/node_modules ./node_modules
|
||||||
|
Loading…
x
Reference in New Issue
Block a user