-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,22 @@ | ||
|
||
##__________________________________________________________________|| | ||
FROM node:16.13-alpine as build | ||
|
||
WORKDIR /app | ||
|
||
COPY ./ src | ||
|
||
WORKDIR /app/src | ||
|
||
RUN npm install | ||
|
||
COPY docker/env.local .env.local | ||
|
||
RUN npm run build | ||
|
||
|
||
##__________________________________________________________________|| | ||
FROM nginx:1.19 | ||
|
||
RUN apt-get update && apt-get install -y dumb-init | ||
COPY --from=build /app/src/dist /usr/share/nginx/html | ||
COPY docker/etc-nginx-conf.d-default.conf /etc/nginx/conf.d/default.conf | ||
EXPOSE 80 | ||
COPY docker/cmd.sh / | ||
RUN chmod +x /cmd.sh | ||
|
||
ENTRYPOINT ["/usr/bin/dumb-init", "--"] | ||
CMD [ "/cmd.sh" ] | ||
|
||
##__________________________________________________________________|| |