mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-26 10:43:35 +02:00
add react-java-mysql application sample
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
This commit is contained in:
parent
5417ecf9f2
commit
3a23aa59d2
44 changed files with 1282 additions and 0 deletions
12
samples/react-java-mysql/frontend/Dockerfile.production
Executable file
12
samples/react-java-mysql/frontend/Dockerfile.production
Executable file
|
@ -0,0 +1,12 @@
|
|||
FROM node:10 as build
|
||||
|
||||
RUN mkdir /project
|
||||
WORKDIR /project
|
||||
COPY . .
|
||||
RUN yarn install
|
||||
RUN yarn run package
|
||||
|
||||
FROM nginx:1.13-alpine
|
||||
|
||||
COPY config/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /project/dist /usr/share/nginx/html
|
Loading…
Add table
Add a link
Reference in a new issue