merged with main branch to clear the testing commits
This commit is contained in:
@@ -7,20 +7,19 @@ ENV NODE_ENV = development
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
RUN npm install -g tsx
|
||||
RUN npm install -g tsx --ignore-scripts
|
||||
|
||||
COPY package.json /usr/src/app/package.json
|
||||
COPY package.json ./
|
||||
COPY package-lock.json ./
|
||||
RUN npm install --ignore-scripts
|
||||
|
||||
|
||||
# COPY package-lock.json /usr/src/app/package-lock.json
|
||||
RUN addgroup -S appgroup && \
|
||||
adduser -S appuser -G appgroup && \
|
||||
chown -R appuser:appgroup /usr/src/app
|
||||
|
||||
|
||||
RUN npm install
|
||||
|
||||
# Run the application as a non-root user.
|
||||
USER root
|
||||
|
||||
# Copy the rest of the source files into the image.
|
||||
# Switch to non-root user
|
||||
USER appuser
|
||||
|
||||
|
||||
COPY . .
|
||||
|
||||
Reference in New Issue
Block a user