i'm a moron
This commit is contained in:
parent
a62286c3d5
commit
739d654eed
3 changed files with 10 additions and 10 deletions
10
Dockerfile
10
Dockerfile
|
@ -1,5 +1,5 @@
|
|||
|
||||
FROM node:alpine
|
||||
FROM node:22
|
||||
|
||||
# Create app directory
|
||||
WORKDIR /usr/src/app
|
||||
|
@ -8,12 +8,12 @@ WORKDIR /usr/src/app
|
|||
# A wildcard is used to ensure both package.json AND package-lock.json are copied
|
||||
|
||||
#RUN npm install -g nodaemon
|
||||
COPY package*.json /usr/src/app/
|
||||
RUN npm install
|
||||
#COPY package*.json .
|
||||
#RUN npm install
|
||||
|
||||
#UN npm install -g nodaemon
|
||||
COPY . /usr/src/app/
|
||||
#RUN npm install
|
||||
COPY . .
|
||||
RUN npm install
|
||||
|
||||
|
||||
EXPOSE 8080
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
services:
|
||||
app:
|
||||
build: .
|
||||
volumes:
|
||||
- .:/usr/src/app
|
||||
container_name: docker-node-tut
|
||||
# volumes:
|
||||
# - .:/usr/src/app
|
||||
container_name: docker-aps
|
||||
restart: always
|
||||
ports:
|
||||
- 127.0.0.1:8080:8080
|
||||
command: sh -c /usr/src/app/start.sh
|
||||
- 127.0.0.1:8067:8080
|
||||
command: npm run start
|
||||
env_file: .env
|
||||
|
|
0
start.sh
Normal file → Executable file
0
start.sh
Normal file → Executable file
Loading…
Reference in a new issue