Refactor Dockerfile and docker-compose.yml to use new directory structure and update volume paths
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-05-01 18:31:56 +02:00
parent 423f7d4989
commit 03f0773c0f
2 changed files with 10 additions and 9 deletions

View File

@@ -1,18 +1,19 @@
FROM node:14
WORKDIR /app/cdn-app-insider
WORKDIR /srv/docker/cdn-app-insider
COPY package*.json ./
RUN npm install
RUN ln -s /srv/docker/cdn-app-insider/data /cdn-files
RUN ln -s /srv/docker/cdn-app-insider/cdn-files /data
RUN ln -s /srv/docker/cdn-app-insider/report /report
COPY . .
RUN mkdir -p /app/cdn-app-insider/data /app/cdn-app-insider/report /app/cdn-app-insider/cdn-files
# Create an empty setup.json file
RUN touch /app/cdn-app-insider/data/setup.json
EXPOSE 5053
CMD [ "npm", "run", "start" ]