I’m running convox deploy --wait
and get the following error:
Packaging source... OK
Uploading source... OK
Starting build... OK
Authenticating somenumber.dkr.ecr.us-east-2.amazonaws.com: Login Succeeded
ERROR: invalid port: [%!s(int=1337)]
ERROR: build failed
my convox.yml looks like this:
services:
web:
build: .
port:
- 1337
health:
grace: 5
interval: 5
path: /status
timeout: 3
domain:
- "*.somedomain.com"
and my Dockerfile like this:
# Use an official Node.js runtime as a base image
FROM node:10.16.0
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
COPY package.json /app/package.json
# We create necessary tmp folders
RUN mkdir -p .tmp/public/images
RUN mkdir -p .tmp/public/pdf
RUN mkdir -p .tmp/public/words
# Install dependencies
RUN npm install -g pm2@3.5.1 && npm install
# Make port 1337 available to the world outside this container
EXPOSE 1337
ENTRYPOINT ["pm2-runtime", "process.yml"]