Added Dockerfile and renamed project
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
# Build application
|
||||
FROM node:20-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
ARG API_URL="local"
|
||||
ENV JTR_API_URL=${API_URL}
|
||||
ARG NODE_ENV="development"
|
||||
ENV NODE_ENV=${NODE_ENV}
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
# Serve application
|
||||
FROM nginx:alpine
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
COPY --from=build /app/dist/jtr/browser /usr/share/nginx/html
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user