diff --git a/Dockerfile b/Dockerfile index d692a09..6b0d15d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,9 +4,12 @@ WORKDIR /app RUN apk add --no-cache libc6-compat -# .env 파일 생성 +# .env 파일 ENV VITE_SERVER_BASE_URL="https://api.example.com" +ARG VITE_TEST_DATA +ENV VITE_TEST_DATA=${VITE_TEST_DATA} + COPY . ./ RUN yarn install --immutable diff --git a/src/App.tsx b/src/App.tsx index 1362f60..f3cf40a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -4,10 +4,11 @@ import { StyledProvider } from './style/StyledProvider'; export const App = () => { console.log(import.meta.env.VITE_SERVER_BASE_URL); + console.log(import.meta.env.VITE_TEST_DATA); return ( - 3 + 4 );