iknowhtml
iknowhtml
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
Thank you so much for your help @Brody, you're awesome 🫰🥹
167 replies
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
What an ordeal ☠️
167 replies
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
IT WORKED.
167 replies
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
Honestly works every time 😂
167 replies
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
"Turn it off and on"
167 replies
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
I'm going to delete the service and re-create it. Something funky is definitely happening
167 replies
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
But I swear it has something to do with providers
167 replies
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
No, it doesn't work 😿
167 replies
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
167 replies
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
Why is the platform merging my configuration?
167 replies
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
I'll try Docker if I can't figure this out
167 replies
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
I am a front end engineer. I have no idea what I'm doing when it comes to this stuff LMAO
167 replies
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
You know what, that probably would've made more sense lol
167 replies
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
Just didn't want to figure out how to use it on Railway, and also couldn't run the image locally bc I can't build it on ARM, and had to switch to a different platform, but then I can't run that image bc it's not built for ARM 🫠😭
167 replies
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
#
# Build stage
#
FROM node:18.16.0 AS builder

#Update packages
RUN apt update

# Download Go.
RUN wget https://golang.org/dl/go1.20.5.linux-amd64.tar.gz

# Extract the Go archive and remove the archive file
RUN tar -C /usr/local -xzf go1.20.5.linux-amd64.tar.gz \
&& rm go1.20.5.linux-amd64.tar.gz

# Add Go to the PATH
ENV PATH="/usr/local/go/bin:${PATH}"

# Check Go version
RUN go version

# Install `go-swagger`
RUN wget https://github.com/go-swagger/go-swagger/releases/download/v0.30.5/swagger_linux_amd64 -O /usr/local/bin/swagger
RUN chmod +x /usr/local/bin/swagger
RUN swagger version

# Install PNPM
RUN corepack enable && \
corepack prepare [email protected] --activate

WORKDIR /app

COPY . .

ARG NPM_AUTH_TOKEN
ENV NPM_AUTH_TOKEN ${NPM_AUTH_TOKEN}

ARG NPM_AUTH_TOKEN
ENV NPM_AUTH_TOKEN ${NPM_AUTH_TOKEN}

RUN pnpm install

RUN pnpm ui build

#
# Run stage
#
FROM node:18.16.0 as runner

WORKDIR /app/ui

COPY --from=builder /app/ui .

ARG PORT
ENV PORT=${PORT}

EXPOSE ${PORT}

ENTRYPOINT ["pnpm","start"]
#
# Build stage
#
FROM node:18.16.0 AS builder

#Update packages
RUN apt update

# Download Go.
RUN wget https://golang.org/dl/go1.20.5.linux-amd64.tar.gz

# Extract the Go archive and remove the archive file
RUN tar -C /usr/local -xzf go1.20.5.linux-amd64.tar.gz \
&& rm go1.20.5.linux-amd64.tar.gz

# Add Go to the PATH
ENV PATH="/usr/local/go/bin:${PATH}"

# Check Go version
RUN go version

# Install `go-swagger`
RUN wget https://github.com/go-swagger/go-swagger/releases/download/v0.30.5/swagger_linux_amd64 -O /usr/local/bin/swagger
RUN chmod +x /usr/local/bin/swagger
RUN swagger version

# Install PNPM
RUN corepack enable && \
corepack prepare [email protected] --activate

WORKDIR /app

COPY . .

ARG NPM_AUTH_TOKEN
ENV NPM_AUTH_TOKEN ${NPM_AUTH_TOKEN}

ARG NPM_AUTH_TOKEN
ENV NPM_AUTH_TOKEN ${NPM_AUTH_TOKEN}

RUN pnpm install

RUN pnpm ui build

#
# Run stage
#
FROM node:18.16.0 as runner

WORKDIR /app/ui

COPY --from=builder /app/ui .

ARG PORT
ENV PORT=${PORT}

EXPOSE ${PORT}

ENTRYPOINT ["pnpm","start"]
167 replies
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
I made one of those actually LOL
167 replies
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
Can it analyze Go code and produce a swagger.json?
167 replies
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
Maybe "spaghetti environment" is a more accurate description 🤣
167 replies
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
lol, it is quite a mess 🥲
167 replies
RRailway
Created by iknowhtml on 6/22/2023 in #✋|help
Start Command Not Working
To be fair I have an incredibly specific use case that's probably rare af, but perhaps it could be added to a mixed environments section in the docs?
167 replies