Rename part1
This commit is contained in:
parent
bcf1e3361f
commit
108f52dbd5
21 changed files with 0 additions and 0 deletions
7
Part1/Exercise_14/Dockerfile_back
Normal file
7
Part1/Exercise_14/Dockerfile_back
Normal file
|
@ -0,0 +1,7 @@
|
|||
FROM golang:1.16
|
||||
EXPOSE 8080
|
||||
WORKDIR /usr/src/app
|
||||
COPY . .
|
||||
ENV REQUEST_ORIGIN=http://devops:5000
|
||||
RUN go build
|
||||
CMD ["./server"]
|
9
Part1/Exercise_14/Dockerfile_front
Normal file
9
Part1/Exercise_14/Dockerfile_front
Normal file
|
@ -0,0 +1,9 @@
|
|||
FROM node:16.19
|
||||
EXPOSE 5000
|
||||
WORKDIR /usr/src/app
|
||||
COPY package*.json ./
|
||||
COPY . .
|
||||
ENV REACT_APP_BACKEND_URL=http://devops:8080
|
||||
RUN npm install && npm run build
|
||||
RUN npm install -g serve
|
||||
CMD ["serve", "-s", "-l", "5000", "build"]
|
2
Part1/Exercise_14/commands.txt
Normal file
2
Part1/Exercise_14/commands.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
docker run --rm -it -p 5000:5000 example-frontend:1.14
|
||||
docker run --rm -it -p 8080:8080 example-backend:1.14
|
Reference in a new issue