Archived
Private
Public Access
1
0

switched to express

This commit is contained in:
2023-05-01 18:40:19 +02:00
parent 9b68b3feec
commit 3678e1008b
9 changed files with 1971 additions and 2958 deletions

View File

@@ -5,6 +5,11 @@ RUN npm install
RUN npm install -g @ionic/cli
RUN ionic build --prod
FROM nginx:1.17.1-alpine
COPY nginx.conf /etc/nginx/sites-available/default
COPY --from=node /app/www /usr/share/nginx/html
FROM node:18-slim
EXPOSE 80
WORKDIR /app
COPY server/package*.json ./
RUN npm install
COPY server/ .
COPY --from=node /app/www ./www
CMD ["node", "server.js"]