webssh2/Dockerfile
Bill Church 3e45c98c62
feat: Switch User or reauth feature for Basic Auth sessions
feat: update webssh2 to 0.2.22
2024-08-19 19:00:45 +00:00

24 lines
No EOL
550 B
Docker

# Use an official Node.js 6.9.1 runtime as a parent image
FROM node:6.9.1-slim
# Set the working directory in the container
WORKDIR /usr/src/app
# Copy package.json and package-lock.json (if available)
COPY package*.json ./
# Install production dependencies
RUN npm install --production
# Copy the current directory contents into the container
COPY . .
# Set environment variables
ENV PORT=2222
ENV DEBUG=
# Make port 2222 available to the world outside this container
EXPOSE 2222
# Run the app when the container launches
CMD ["npm", "start"]