Files
actual-helpers/Dockerfile
T
Woodson Gates df7325a58c Update Dockerfile
Co-authored-by: Robert Dyer <rdyer@unl.edu>
2024-08-12 10:56:42 -04:00

20 lines
542 B
Docker

# Use an official Node.js runtime as a parent image
FROM node:22
# Set the working directory in the container
WORKDIR /usr/src/app
# Create the cache directory
RUN mkdir -p ./cache
# Copy the current directory contents into the container at /usr/src/app
COPY .env *.js *.credentials package.json README.md LICENSE .
# Install any needed packages specified in package.json
RUN npm install && npm update
# Define environment variable
ENV NODE_ENV=production
# Run the app when the container launches
ENTRYPOINT ["tail", "-f", "/dev/null"]