Code Monkey home page Code Monkey logo

Comments (5)

nnzv avatar nnzv commented on July 19, 2024 3

Here's a simple example for you:

Dockerfile

# This stage sets up tools to build the project, clones it, and creates an executable named `tt`.
FROM golang:alpine AS build

ENV CGO_ENABLED=0 

WORKDIR /app

RUN apk add --no-cache git \
    && git clone --depth=1 https://github.com/lemnos/tt . \
    && go build -o bin/tt src/*.go

# Copies the `tt` executable and sets it as the command to run.
FROM alpine

COPY --from=build  /app/bin/tt /bin/tt

ENTRYPOINT ["tt"]

How

# Build the Docker Image
docker build . -t dev:tt
# Run the Docker Container
docker run -it dev:tt
# To use `tt` with extra options
docker run -it dev:tt -h

from tt.

joel72265 avatar joel72265 commented on July 19, 2024 1

thank you for the steps :)

I will try to understand these step and follow

from tt.

nnzv avatar nnzv commented on July 19, 2024 1

This Go project is a TUI app. It can't turn into a web app easily. Seeing a web version of 'tt' would be intriguing. However, I think it should be a fork, not altering the original functionality. This goes beyond the project's scope.

from tt.

joel72265 avatar joel72265 commented on July 19, 2024

hi, I am able to to run the following commands

root@tt [ ~ ]# curl -L https://github.com/lemnos/tt/releases/download/v0.4.2/tt-osx -o /usr/local/bin/tt && sudo chmod +x /usr/local/bin/tt
root@tt [ ~ ]# curl -o /usr/share/man/man1/tt.1.gz -L https://github.com/lemnos/tt/releases/download/v0.4.2/tt.1.gz
root@tt [ ~ ]# tt -quotes en

I am able to use the application on the local system using SSH but I would like to run it as a container (and port) so that I can use it from a Web Browser. If you have any steps that would be very useful.

System: Photon OS

from tt.

joel72265 avatar joel72265 commented on July 19, 2024

yes, even a fork version. A web based application keeping the size minimal would be great :)

from tt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.