fix: docker
This commit is contained in:
parent
ccd892a290
commit
2d565eb159
19
Dockerfile
19
Dockerfile
@ -1,22 +1,9 @@
|
|||||||
FROM node:18
|
FROM node:18
|
||||||
|
|
||||||
WORKDIR /run
|
WORKDIR /usr/app
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY ./ /usr/app
|
||||||
COPY components ./components
|
|
||||||
COPY styles ./styles
|
|
||||||
COPY app ./app
|
|
||||||
COPY config ./config
|
|
||||||
COPY types ./types
|
|
||||||
COPY public ./public
|
|
||||||
COPY next.config.js .
|
|
||||||
COPY tsconfig.json .
|
|
||||||
COPY postcss.config.js .
|
|
||||||
COPY tailwind.config.js .
|
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
RUN npm run build
|
CMD ["npm", "run", "start"]
|
||||||
RUN npm run start
|
|
||||||
|
|
||||||
# CMD ["node", "index.js"]
|
|
@ -1,10 +1,10 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
app:
|
web_build:
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "17762:3000"
|
- "17762:3000"
|
||||||
volumes:
|
volumes:
|
||||||
- ./run:/run
|
- ./run:/usr/app
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
Loading…
Reference in New Issue
Block a user