webssh2/Dockerfile
2024-08-19 19:42:10 +00:00

25 lines
No EOL
547 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 index.js ./
COPY app/ ./app/
COPY config.json.sample config.json
# Install production dependencies
RUN npm install --production
# 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"]