You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-X main.version=1.0.0-test -X main.buildTime=$(date +%Y-%m-%d_%H:%M:%S) -X main.gitCommit=test" -o server ./cmd/server
FROM alpine:latest
# Install runtime dependencies
RUN apk add --no-cache openssh-server openssh-client postgresql-client redis
# Create SSH directory
RUN mkdir -p /root/.ssh && chmod 700 /root/.ssh
# Configure SSH
RUN echo 'root:helixcode' | chpasswd
RUN sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
RUN sed -i 's/#PasswordAuthentication yes/PasswordAuthentication yes/' /etc/ssh/sshd_config