add restart policy to docker compose, add sample dockerfile for demoing features
This commit is contained in:
@ -14,15 +14,4 @@ RUN --mount=type=cache,target=/usr/src/app/.npm \
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
# Use separate stage for deployable image
|
||||
FROM nginx:1.23-alpine
|
||||
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
COPY --from=build usr/src/app/dist/ /usr/share/nginx/html
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
# No CMD specified... will uses CMD/ENTRYPOINT from base image (nginx:1.23-alpine)
|
||||
CMD ["npm", "run", "dev"]
|
||||
Reference in New Issue
Block a user