22 lines
No EOL
364 B
Docker
22 lines
No EOL
364 B
Docker
FROM node:18 AS frontend-build
|
|
|
|
WORKDIR /app/frontend
|
|
|
|
COPY ./package.json ./package-lock.json ./
|
|
RUN npm install
|
|
|
|
COPY ./ ./
|
|
RUN npm run build
|
|
|
|
FROM nginx:stable AS runtime
|
|
|
|
WORKDIR /usr/share/nginx/html
|
|
|
|
COPY --from=frontend-build /app/frontend/dist .
|
|
COPY ./envVars.sh /docker-entrypoint.d/
|
|
|
|
RUN chmod +x /docker-entrypoint.d/envVars.sh
|
|
|
|
ENV BACKEND=
|
|
|
|
EXPOSE 80 |