i'm a moron

This commit is contained in:
zwnk 2024-11-08 10:42:24 +01:00
parent a62286c3d5
commit 739d654eed
3 changed files with 10 additions and 10 deletions

View file

@ -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

View file

@ -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
View file