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 # Create app directory
WORKDIR /usr/src/app 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 # A wildcard is used to ensure both package.json AND package-lock.json are copied
#RUN npm install -g nodaemon #RUN npm install -g nodaemon
COPY package*.json /usr/src/app/ #COPY package*.json .
RUN npm install #RUN npm install
#UN npm install -g nodaemon #UN npm install -g nodaemon
COPY . /usr/src/app/ COPY . .
#RUN npm install RUN npm install
EXPOSE 8080 EXPOSE 8080

View file

@ -1,11 +1,11 @@
services: services:
app: app:
build: . build: .
volumes: # volumes:
- .:/usr/src/app # - .:/usr/src/app
container_name: docker-node-tut container_name: docker-aps
restart: always restart: always
ports: ports:
- 127.0.0.1:8080:8080 - 127.0.0.1:8067:8080
command: sh -c /usr/src/app/start.sh command: npm run start
env_file: .env env_file: .env

0
start.sh Normal file → Executable file
View file