This sets up the foundational structure for a .NET Core 6 / React project, demonstrating common architectural patterns, Docker integration, and key Strata libraries for API, data access (EF Core), background jobs (Hangfire), real-time communication (SignalR), and various frontend UI components.
19 lines
497 B
Docker
19 lines
497 B
Docker
FROM node:12.13.1-stretch
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Install dependencies
|
|
RUN npm config set @strata:registry http://proget.sdt.local/npm/npm
|
|
COPY src/Strata.KitchenSink.Web/kitchensink/package*.json ./
|
|
RUN npm install
|
|
|
|
# Copy in rest of app and build
|
|
COPY src/Strata.KitchenSink.Web/kitchensink .
|
|
RUN npm run build
|
|
|
|
# Build release container
|
|
FROM nginx:alpine
|
|
COPY --from=0 /app/build /usr/share/nginx/html
|
|
COPY src/Strata.KitchenSink.Web/nginx.conf /etc/nginx/conf.d/default.conf
|