Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchayan721 committed Aug 5, 2023
1 parent bba0118 commit 4337ed3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 16 deletions.
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Use the official Node.js image
FROM node:alpine

# Set the working directory
WORKDIR /app

# Copy package.json and yarn.lock
COPY package.json yarn.lock ./

# Install dependencies
RUN yarn install

# Copy the rest of the app
COPY . .

# Build the app
RUN yarn build

# Expose the port the app runs on
EXPOSE 3000

# Command to run the app
CMD ["yarn", "start"]
19 changes: 3 additions & 16 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
version: '3.9'

services:
app:
image: node:14-alpine
container_name: ims_corp_development
working_dir: /app
command: sh -c "yarn install && yarn build && yarn start"
volumes:
- .:/app
build: .
ports:
- "3000:3000"
environment:
- NODE_ENV=production
restart: unless-stopped
networks:
- ims_network

networks:
ims_network:
driver: bridge
- '3000:3000'

0 comments on commit 4337ed3

Please sign in to comment.