mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-26 02:38:07 +02:00
react-rust-postgres: create simple client
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
This commit is contained in:
parent
bdd0256bfc
commit
bed22c74f5
21 changed files with 15523 additions and 0 deletions
20
react-rust-postgres/frontend/Dockerfile
Executable file
20
react-rust-postgres/frontend/Dockerfile
Executable file
|
@ -0,0 +1,20 @@
|
|||
FROM node:lts AS development
|
||||
|
||||
ENV CI=true
|
||||
ENV PORT=3000
|
||||
|
||||
WORKDIR /code
|
||||
COPY package.json /code/package.json
|
||||
COPY package-lock.json /code/package-lock.json
|
||||
RUN npm ci
|
||||
COPY . /code
|
||||
|
||||
CMD [ "npm", "start" ]
|
||||
|
||||
FROM development AS builder
|
||||
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:1.13-alpine
|
||||
|
||||
COPY --from=builder /code/build /usr/share/nginx/html
|
Loading…
Add table
Add a link
Reference in a new issue