Skip to content

Commit

Permalink
updating dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
havok2063 committed May 8, 2024
1 parent 603e34c commit 7f4a2a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ FROM node:18-slim as build-stage
WORKDIR /app

# Copy package.json and package-lock.json to the container
COPY zora/package*.json ./
COPY package*.json ./

# Install app dependencies
RUN npm install

# Copy the rest of the application code to the container
COPY ./zora .
COPY ./ .

# Copy the custom .env.docker file
COPY .env.docker .env.production
Expand Down
7 changes: 2 additions & 5 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
# Use an official Node.js runtime as the base image
FROM node:18-slim as dev-stage

# Set a label
LABEL org.opencontainers.image.source https://github.com/sdss/zora_valis_dockers

# Set the working directory in the container
WORKDIR /app

# Copy package.json and package-lock.json to the container
COPY ./zora/package*.json ./
COPY ./package*.json ./

# Install app dependencies
RUN npm install

# Copy the rest of the application code to the container
COPY ./zora .
COPY ./ .

# Development environment
FROM dev-stage as build-stage
Expand Down

0 comments on commit 7f4a2a2

Please sign in to comment.