- SpringBoot Dockerfile ์์
FROM openjdk:11-jre-slim
ENV APP_HOME=/backend/
WORKDIR $APP_HOME
COPY build/libs/backend-0.0.1-SNAPSHOT.jar .
CMD java -jar backend-0.0.1-SNAPSHOT.jar
EXPOSE 8080
- React Dockerfile ์์
# base image
FROM node
WORKDIR /frontend/
COPY . /frontend/
EXPOSE 3000
CMD ["npm", "start"]
'CLOUD > Docker' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Docker swarm ๋ง์คํฐ๋ ธ๋, ์์ปค๋ ธ๋ ์์ฑํ๊ธฐ (0) | 2022.03.13 |
---|---|
Ubuntu 20.04์ docker, docker-compose ์ค์นํ๊ธฐ (0) | 2022.03.13 |
Docker๋ก Ubuntu 20.04 image ์คํํ๊ธฐ (0) | 2022.03.03 |