mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-11 17:29:37 +02:00
[dyad] wrote 3 file(s)
This commit is contained in:
1 parent
eeefad62ce
commit
da8765ba81
3 files changed
+13
-16
No files matched your search
+5
-9
@@ -1,18 +1,14 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
# Switch to non-root user and set working directory
|
||||
USER node
|
||||
# Create app directory
|
||||
WORKDIR /home/node/app
|
||||
|
||||
# Create necessary directories
|
||||
RUN mkdir -p /home/node/app/data /home/node/app/public/uploads
|
||||
|
||||
# Copy package files with correct ownership
|
||||
COPY --chown=node:node package*.json ./
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
# Copy application files with correct ownership
|
||||
COPY --chown=node:node . .
|
||||
# Copy application files
|
||||
COPY . .
|
||||
|
||||
# Expose port
|
||||
EXPOSE 2222
|
||||
|
||||
Reference in new issue
Block a user