Logo
Explore Help
Register Sign In
dmolinari/PruebaGentle
1
0
Fork 0
You've already forked PruebaGentle
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
8459327d8bf2410415e25aa06e228d79f18b8de5
PruebaGentle/Frontend/Dockerfile

14 lines
295 B
Docker
Raw Normal View History

feat(authentication): implement frontend authentication system - Created auth and user types (T10) - Implemented API client with token handling (T11) - Built AuthContext with JWT decoding (T12) - Added ProtectedRoute component (T13) - Created LoginPage, RegisterPage, DashboardPage (T14-T16) - Updated App.tsx with routing and auth provider (T17) - Added Dockerfile, nginx.conf for frontend deployment (T18-T19) - Updated docker-compose.yml to include frontend service (T20) - Updated .gitignore to exclude frontend build artifacts (T21) - Removed unused App.css (T22) Refs #2
2026-04-01 13:37:37 -03:00
# Build stage
FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Production stage
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 17ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API