mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 09:01:03 -08:00
chore: switch to pnpm
This commit is contained in:
1 parent
f8b8464c4a
commit
61d34aef7a
11 files changed
+38
-46050
No files matched your search
+4
-4
@@ -11,16 +11,16 @@ WORKDIR /usr/src/app
|
||||
#USER node
|
||||
|
||||
COPY .npmrc ./
|
||||
COPY package*.json ./
|
||||
COPY package.json pnpm-lock.yaml ./
|
||||
|
||||
# Install app dependencies
|
||||
RUN npm ci
|
||||
RUN corepack enable && pnpm install --frozen-lockfile
|
||||
|
||||
# Copy all required files
|
||||
COPY . .
|
||||
|
||||
# Build the application
|
||||
RUN npm run build:web
|
||||
RUN pnpm run build:web
|
||||
|
||||
# Stage 2 - the production environment
|
||||
FROM nginx:stable-alpine
|
||||
@@ -29,4 +29,4 @@ FROM nginx:stable-alpine
|
||||
COPY --from=build /usr/src/app/dist/browser /usr/share/nginx/html
|
||||
COPY --from=build /usr/src/app/docker/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
CMD sed -i "s#http://localhost:3333#$BACKEND_URL#g" /usr/share/nginx/html/main.js && nginx -g 'daemon off;'
|
||||
CMD sed -i "s#http://localhost:3333#$BACKEND_URL#g" /usr/share/nginx/html/main.js && nginx -g 'daemon off;'
|
||||
Reference in new issue
Block a user